diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..589d5c8 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +BankAccountTEST \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..d7fc74c --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_12.xml b/.idea/libraries/Maven__junit_junit_4_12.xml new file mode 100644 index 0000000..d411041 --- /dev/null +++ b/.idea/libraries/Maven__junit_junit_4_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 0000000..f58bbc1 --- /dev/null +++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..5755a99 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f0fcb75 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..89b573a --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,793 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1484693489157 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + file://$PROJECT_DIR$/src/test/java/ibikunle/tolani/BankAccountTESTS.java + 11 + + + + file://$PROJECT_DIR$/src/test/java/ibikunle/tolani/BankAccountTESTS.java + 10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AccessControlBankAccountLAB.iml b/AccessControlBankAccountLAB.iml new file mode 100644 index 0000000..03320bd --- /dev/null +++ b/AccessControlBankAccountLAB.iml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8b79e92 --- /dev/null +++ b/pom.xml @@ -0,0 +1,18 @@ + + + 4.0.0 + + ibikunle.tolani + BankAccountTEST + 1.0-SNAPSHOT + + + junit + junit + 4.12 + + + + \ No newline at end of file diff --git a/src/main/java/ibikunle/tolani/Bank.java b/src/main/java/ibikunle/tolani/Bank.java new file mode 100644 index 0000000..ab742c6 --- /dev/null +++ b/src/main/java/ibikunle/tolani/Bank.java @@ -0,0 +1,10 @@ +package ibikunle.tolani; + +/** + * Created by tolaniibikunle on 1/17/17. + */ +public class Bank { + public static void main(String[] args) { + + } +} diff --git a/src/main/java/ibikunle/tolani/BankAccount.java b/src/main/java/ibikunle/tolani/BankAccount.java new file mode 100644 index 0000000..daf6e0c --- /dev/null +++ b/src/main/java/ibikunle/tolani/BankAccount.java @@ -0,0 +1,22 @@ +package ibikunle.tolani; + +/** + * Created by tolaniibikunle on 1/17/17. + */ +public class BankAccount { + static double accountNumber = 0; + protected enum differentAcountTypes{Checkings,Savings, Investments} + + protected static void createBankAccount(String name,String bankAccountType){} + + protected double setBankAccountNumber() { + accountNumber += 1; + accountNumber++; + return accountNumber; + } + protected static void setOverdraft(){} + + protected static void setBankAccountStatus(){} + + protected static void setInterestRate(){} +} diff --git a/src/test/java/ibikunle/tolani/BankAccountTESTS.java b/src/test/java/ibikunle/tolani/BankAccountTESTS.java new file mode 100644 index 0000000..e90071a --- /dev/null +++ b/src/test/java/ibikunle/tolani/BankAccountTESTS.java @@ -0,0 +1,17 @@ +package ibikunle.tolani; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +/** + * Created by tolaniibikunle on 1/17/17. + */ +public class BankAccountTESTS { + @Test + public static void setBankAccountNumber(){ + double actual = BankAccount.setBankAccountNumber(); + double expected = 1; + assertEquals("Expected 1",actual,expected); + } +} diff --git a/target/classes/ibikunle/tolani/Bank.class b/target/classes/ibikunle/tolani/Bank.class new file mode 100644 index 0000000..f1a9345 Binary files /dev/null and b/target/classes/ibikunle/tolani/Bank.class differ diff --git a/target/classes/ibikunle/tolani/BankAccount$differentAcountTypes.class b/target/classes/ibikunle/tolani/BankAccount$differentAcountTypes.class new file mode 100644 index 0000000..92061b5 Binary files /dev/null and b/target/classes/ibikunle/tolani/BankAccount$differentAcountTypes.class differ diff --git a/target/classes/ibikunle/tolani/BankAccount.class b/target/classes/ibikunle/tolani/BankAccount.class new file mode 100644 index 0000000..2502c99 Binary files /dev/null and b/target/classes/ibikunle/tolani/BankAccount.class differ