From 51cf3badca48f02016540d39aba933e7def33bb0 Mon Sep 17 00:00:00 2001 From: Tolani Ibikunle Date: Tue, 17 Jan 2017 18:12:27 -0500 Subject: [PATCH] first commit --- .idea/.name | 1 + .idea/compiler.xml | 16 + .idea/libraries/Maven__junit_junit_4_12.xml | 13 + .../Maven__org_hamcrest_hamcrest_core_1_3.xml | 13 + .idea/misc.xml | 13 + .idea/modules.xml | 8 + .idea/workspace.xml | 793 ++++++++++++++++++ AccessControlBankAccountLAB.iml | 17 + pom.xml | 18 + src/main/java/ibikunle/tolani/Bank.java | 10 + .../java/ibikunle/tolani/BankAccount.java | 22 + .../ibikunle/tolani/BankAccountTESTS.java | 17 + target/classes/ibikunle/tolani/Bank.class | Bin 0 -> 387 bytes .../BankAccount$differentAcountTypes.class | Bin 0 -> 1246 bytes .../classes/ibikunle/tolani/BankAccount.class | Bin 0 -> 951 bytes 15 files changed, 941 insertions(+) create mode 100644 .idea/.name create mode 100644 .idea/compiler.xml create mode 100644 .idea/libraries/Maven__junit_junit_4_12.xml create mode 100644 .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/workspace.xml create mode 100644 AccessControlBankAccountLAB.iml create mode 100644 pom.xml create mode 100644 src/main/java/ibikunle/tolani/Bank.java create mode 100644 src/main/java/ibikunle/tolani/BankAccount.java create mode 100644 src/test/java/ibikunle/tolani/BankAccountTESTS.java create mode 100644 target/classes/ibikunle/tolani/Bank.class create mode 100644 target/classes/ibikunle/tolani/BankAccount$differentAcountTypes.class create mode 100644 target/classes/ibikunle/tolani/BankAccount.class 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 0000000000000000000000000000000000000000..f1a9345229344fe72db3414af1a55745b55cdf29 GIT binary patch literal 387 zcmZusO-sW-5Pg&8!^CQ9TfBR#3I@+D9uzzUJyd$}w24ccHr>FQ_`f^}9{d6RC~-Cl z3U*=V|)1Jzf(0tNK9`1{oWD({6HY?^Iq1 zGRo>gRZC^r^*^BBJn|FaFyoxpt*La{)Ri)vUMjPm$+nGRBmDF}Td8N23Rk9!#SI|pGM-syh46!41|9b#266s>>c8C+7%5~y@!uXGnu!sF_a3Imc@CzZ9N>2a) literal 0 HcmV?d00001 diff --git a/target/classes/ibikunle/tolani/BankAccount$differentAcountTypes.class b/target/classes/ibikunle/tolani/BankAccount$differentAcountTypes.class new file mode 100644 index 0000000000000000000000000000000000000000..92061b568812d01463c7d7b391e3bbbf78861be2 GIT binary patch literal 1246 zcmbVLZEq4m5PlX8?l`U#DOUU9J1VqVN?+83rU7f4kP!RfDhct^aXs2=kHs8!B>pR< zi8UHcKl`JMvs+>zHYV*|vXhy4cAjT;XMg?v_7gw}uM$vD(6N9;71Ju7>qucqEJY2I zIwgw&v8-WA*ph~k?uI^|8g+IH(c%pn+(&JNT?MW3`%h5QuhhdJ>XUl z`cx^J7YS{{_J*6^jFjHyVQ1s&+BfM6b+a4#wzK1k(@Brq`I0yt12@I&O&eIlx{4PJ z%U2x}19Nz3;65H0m_)|FlvuLJFr+RnKy<(mv%M}S9oc+gq`TeLkz)s>b?!ghVpc}> z$hj_$1peOeIA^(1qDPaW7pGKagg$^QNtBjU0_jCLlNT~g}b;X^K@{85{xB8=?Bz> z#radjKg;we-Nkm5o!#Q*>R literal 0 HcmV?d00001 diff --git a/target/classes/ibikunle/tolani/BankAccount.class b/target/classes/ibikunle/tolani/BankAccount.class new file mode 100644 index 0000000000000000000000000000000000000000..2502c992d41a6b729853f622e7160206f6ebe34b GIT binary patch literal 951 zcmah{T~8B16g^W)x74K{P*8-bsEO!h*kufSch-8|&bXkV^?)&U=s1gD3PN24@jkd1^7IvPV3RDl`krHV2 zwNVA^L=GcXR{C)$qf?n^mrsgS`%&}UUSALOMP?!u*f^3#2XCdh*e{0d3UtCmNvldl zfhRltb9p5L!q0+%O|&`Nov-ASjJ(VV%;Cv%I2+_N(}`5s(x87*sg7cOZXRE$WR%FU zox={Sv>D~Jh&nQscBb|Nc?;C{!f0YsV-ROas1CI=rCplz+|l#Vz%3tjED3C0V+vbm zYL18JDkPm3*EBr--w(z%uR)d9f(+eEMjm5Q;MZpsa1~q^pZ$RN%AkT}ertKLh9+ab z0HB3-o^`Ooifewwx59U>v5_~f7n@i`mmtSsjS+7U)^U4s#33^`zxxf9R`?y2()xw< zf=-hvKw@>C+a{42t?rc8ovEe`V%?L|;+