Skip to content

Commit 57fd481

Browse files
donald fdonald f
authored andcommitted
I'm trying to make it better
1 parent 4a9b31c commit 57fd481

35 files changed

+407
-154
lines changed

pom.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@
1313
<groupId>org.apache.maven.plugins</groupId>
1414
<artifactId>maven-compiler-plugin</artifactId>
1515
<configuration>
16-
<source>1.7</source>
17-
<target>1.7</target>
16+
<source>1.8</source>
17+
<target>1.8</target>
1818
</configuration>
1919
</plugin>
2020
</plugins>
2121
</build>
2222

23+
<dependencies>
24+
<!-- https://mvnrepository.com/artifact/junit/junit -->
25+
<dependency>
26+
<groupId>junit</groupId>
27+
<artifactId>junit</artifactId>
28+
<version>4.12</version>
29+
</dependency>
30+
31+
</dependencies>
2332

2433
</project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMFunctions;
2+
3+
4+
public class ATM {
5+
6+
/*public void bullShit(){
7+
String userInput = Console.getStringInput("Ask for password");
8+
}
9+
10+
public void start(String bullShit) {
11+
12+
System.out.println("Welcome to Zip Code Wilmington Federal Credit Union.\n");
13+
int userInput = Console.getIntInput("If you have an account please input '1' if you do not have an account please input '2'.");
14+
15+
boolean terminator = false;
16+
17+
while(terminator == false) {
18+
switch (bullShit) {
19+
case 1:
20+
Accounts.userLogin();
21+
terminator = true;
22+
break;
23+
case 2:
24+
UserFactory.createUser();
25+
terminator = true;
26+
break;
27+
default:
28+
System.out.println("Please enter a correct response.\n");
29+
userInput = Console.getIntInput("If you have an account please input '1' if you do not have an account please input '2'.");
30+
}
31+
}
32+
}*/
33+
}

src/main/java/t/ATMFunctions/Console.java renamed to src/main/java/fountain/donald/atmproject/RoughCopy/ATMFunctions/Console.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package t.ATMFunctions;
1+
package fountain.donald.atmproject.RoughCopy.ATMFunctions;
22

33
import java.util.Scanner;
44

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMFunctions;
2+
3+
import fountain.donald.atmproject.RoughCopy.Accounts.Account2;
4+
5+
/**
6+
* Created by iyasuwatts on 10/17/17.
7+
*/
8+
public class Main {
9+
10+
public static void main(String[] args){
11+
12+
// ATM atmTransaction = new ATM();
13+
// atmTransaction.start();
14+
Console console=new Console();
15+
Account2 donaldsAccount = new Account2(100.00);
16+
donaldsAccount.withdrawMoney((double)(console.getIntInput("Enter withdrawal amount")));
17+
System.out.println("The new balance is: " + donaldsAccount.getAccountBalance());
18+
19+
20+
}
21+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMProjectTest;
2+
3+
4+
import fountain.donald.atmproject.RoughCopy.ATMFunctions.ATM;
5+
import org.junit.Test;
6+
7+
public class ATMTest {
8+
9+
@Test
10+
public void startTest(){
11+
//Given:
12+
ATM atm = new ATM();
13+
String output = "Welcome to Zip Code Wilmington Federal Credit Union.\n" +
14+
"If you have an account please input '1' if you do not have an account please input '2'.\n" +
15+
"";
16+
17+
18+
//Expected:
19+
20+
21+
//Actual:
22+
}
23+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMProjectTest;
2+
3+
public class CheckingTest {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMProjectTest;
2+
3+
public class InvestmentTest {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMProjectTest;
2+
3+
public class MainTest {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMProjectTest;
2+
3+
public class SavingTest {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package fountain.donald.atmproject.RoughCopy.ATMProjectTest;
2+
3+
public class UserFactoryTest {
4+
}

0 commit comments

Comments
 (0)