Skip to content

Project complete - see readme for use notes #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 145 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
854f9ce
imported files add
deltaGPhys Nov 8, 2019
783a81d
Update README.md
deltaGPhys Nov 8, 2019
8d315bc
account sctructure change
deltaGPhys Nov 8, 2019
1fa035c
Transaction services class and tests made
Sandicus Nov 8, 2019
3f6f0fc
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 8, 2019
02a4501
Created Account Services Class/Test
Nov 8, 2019
97af704
Merge branch 'ActServ1' into dev
Nov 9, 2019
4a7074d
first merge
Gbunde Nov 9, 2019
5898714
Merge branch 'UserServ' into dev
Gbunde Nov 9, 2019
00a772d
transfer services and menu set up
Nov 9, 2019
76e2338
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
dfbbb91
transfer services updating
Nov 9, 2019
9fee3b3
wrote stubs for four menus
Nov 9, 2019
0faa378
Merge branch 'dev' into MenuFB
Nov 9, 2019
fdbef1b
pointers and package structure
deltaGPhys Nov 9, 2019
5e4675c
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
9fed297
initial project restructuring
deltaGPhys Nov 9, 2019
4c8a55a
references and links cleaned up except menus
deltaGPhys Nov 9, 2019
14e7450
loose ends still out there
deltaGPhys Nov 9, 2019
faed424
comment out ATM methods
deltaGPhys Nov 9, 2019
99f6176
merge syncup
deltaGPhys Nov 9, 2019
addbea1
merge syncup
deltaGPhys Nov 9, 2019
a5742e0
merge syncup
deltaGPhys Nov 9, 2019
b00923e
mainmenu working
deltaGPhys Nov 9, 2019
696ec12
main working
deltaGPhys Nov 9, 2019
fc02756
account number generator aded
Nov 9, 2019
bce89b6
account num generator updated
Nov 9, 2019
97c13fe
fixing changes from file move
Nov 9, 2019
96adfea
clean up account menu
deltaGPhys Nov 9, 2019
689bb99
updating transfer services and menu
Nov 9, 2019
4e6989a
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
3a5e836
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
a5b3a2d
accountmenu done
deltaGPhys Nov 9, 2019
0a30c05
Pulling code for implementing transfer services and menu
Nov 9, 2019
d83ee8c
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
e8e9f3d
newusermenu
deltaGPhys Nov 9, 2019
7eb87e3
ATM commenting
deltaGPhys Nov 9, 2019
18af87d
transfer services menu class updated
Nov 9, 2019
a7348da
Merge branch 'xferserv' of https://github.com/deltaGPhys/CR-MesoLabs-…
deltaGPhys Nov 9, 2019
29cf2ad
fixing tests
Sandicus Nov 9, 2019
9370b4a
transfer services menu done
deltaGPhys Nov 9, 2019
a2e7a5e
Merge branch 'transfer' into dev
deltaGPhys Nov 9, 2019
e912bfa
stubs
Nov 9, 2019
31d263d
Merge branch 'xferserv' of https://github.com/deltaGPhys/CR-MesoLabs-…
deltaGPhys Nov 9, 2019
7526c9c
xfer merge
deltaGPhys Nov 9, 2019
05d2109
userservices tests alignment
deltaGPhys Nov 9, 2019
36d72ec
test edits
Nov 9, 2019
28ec57b
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
3ee28df
added a few stuff
Gbunde Nov 9, 2019
b23046e
exceptions create
deltaGPhys Nov 9, 2019
2286bce
add exceptions to transfer
Nov 9, 2019
0bf66c5
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
6c3db02
exception catching in menus
deltaGPhys Nov 9, 2019
1ed7886
adding exceptions
Nov 9, 2019
5c7987a
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
c407891
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
334f2cb
.
Nov 9, 2019
3e1292a
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
256c943
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
2427ff1
exc
Nov 9, 2019
902f992
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
8a5f5da
merging dev
Nov 9, 2019
c69c422
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
fdbbb9d
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
f14fee3
.
deltaGPhys Nov 9, 2019
6a8b77b
switch exceptions
Nov 9, 2019
34cb0ac
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
c079eec
.
deltaGPhys Nov 9, 2019
9bdd49c
merging dev into my feature
Sandicus Nov 9, 2019
5debafb
gitignore
deltaGPhys Nov 9, 2019
5b49057
fixed conflicts
Sandicus Nov 9, 2019
518d24f
merging dev into my feature
Sandicus Nov 9, 2019
c226d14
transaction tests now running
Sandicus Nov 9, 2019
7702f2d
redundant test prune
deltaGPhys Nov 9, 2019
58c122a
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
1e0bf2d
closed account exceptions
deltaGPhys Nov 9, 2019
17b4b5b
frozen and closed account viewing
deltaGPhys Nov 9, 2019
618c4fe
namechange menu option
deltaGPhys Nov 9, 2019
95a61f1
namechange menu option nonbreaking
deltaGPhys Nov 9, 2019
ea46688
making methods in account services class
Sandicus Nov 9, 2019
a974d79
gimme dev
Sandicus Nov 9, 2019
df45077
added account status to AServ methods
Nov 9, 2019
06e8e40
gitignore data
Sandicus Nov 9, 2019
7fbb76a
Act Transfer option on closing added
Nov 9, 2019
189c8ac
fixed conflict
Nov 9, 2019
a346a31
linkservices
deltaGPhys Nov 9, 2019
241988f
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 9, 2019
1e0b74d
merging
Nov 9, 2019
7f7ba34
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
2784d10
accontserv test fixes
deltaGPhys Nov 9, 2019
bc4116f
importing changes
Nov 9, 2019
054a603
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 9, 2019
355142e
.
deltaGPhys Nov 9, 2019
68adc63
updated transfer services class
Nov 9, 2019
93b1f77
Merge branch 'xferserv' into dev
Nov 9, 2019
0a50b62
deleted extra code in transfer services
Nov 9, 2019
272ee2f
Added Exception Tests
Nov 10, 2019
3d4e91f
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 10, 2019
76197a0
transfer fixes
deltaGPhys Nov 10, 2019
08e955b
merge
deltaGPhys Nov 10, 2019
8a6e262
xfer tests
deltaGPhys Nov 10, 2019
536a679
xfer services menu tests
deltaGPhys Nov 10, 2019
ca73a70
withdraw test fixed
deltaGPhys Nov 10, 2019
4f92dee
menu tests
deltaGPhys Nov 10, 2019
034883e
moving interest to acctserv
deltaGPhys Nov 10, 2019
4ef50e9
interest and returns only on open accts
deltaGPhys Nov 10, 2019
c897e63
Tests Added
Nov 10, 2019
4ac25c8
merging
Nov 10, 2019
ecefbfb
transfer fixed
deltaGPhys Nov 10, 2019
8456387
tests added
Nov 10, 2019
3972dad
fixed conflicts
Nov 10, 2019
2d9dbdd
nitial overdraft setting
deltaGPhys Nov 10, 2019
015dddd
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 10, 2019
f650991
overdraft except behaviors is in
deltaGPhys Nov 10, 2019
a8c5812
added functionality to opening a new account
Nov 10, 2019
093f474
overdraft status changing
deltaGPhys Nov 10, 2019
ae836c1
overdraft complete
deltaGPhys Nov 10, 2019
9959e1c
overdraft test
deltaGPhys Nov 10, 2019
8680cf6
TransactionServicesTests
Nov 10, 2019
aa90f4f
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Nov 10, 2019
a887e31
pushing
Nov 10, 2019
92f6207
cleanup of unused snippets
deltaGPhys Nov 10, 2019
57e1345
more autotransfer tests
deltaGPhys Nov 10, 2019
33e03ed
card num in main menu header
deltaGPhys Nov 10, 2019
2484327
transaction tests
deltaGPhys Nov 11, 2019
ad47487
last transaction test
deltaGPhys Nov 11, 2019
ba85ddb
all working but one test
Nov 11, 2019
4528cf5
.
deltaGPhys Nov 11, 2019
ad65e8b
fixed merge conflicts with dev
Nov 11, 2019
a5c6c4d
acct tests
deltaGPhys Nov 11, 2019
de5e727
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
deltaGPhys Nov 11, 2019
2c556a8
new user test
deltaGPhys Nov 11, 2019
e190e6e
more account tests
deltaGPhys Nov 11, 2019
2c50a34
.
deltaGPhys Nov 11, 2019
622b082
data
deltaGPhys Nov 11, 2019
a128e2d
gitignore
deltaGPhys Nov 11, 2019
7bc0622
Update README.md
deltaGPhys Nov 11, 2019
ff8e834
Update README.md
deltaGPhys Nov 11, 2019
89c8779
Merge branch 'master' of https://github.com/deltaGPhys/CR-MesoLabs-OO…
deltaGPhys Nov 11, 2019
e1ad79b
name change stub and tests
deltaGPhys Nov 11, 2019
b4c1fe8
user name setters
deltaGPhys Nov 11, 2019
bd5313c
almost
Gbunde Nov 11, 2019
c6ff920
Merge branch 'dev' of https://github.com/deltaGPhys/CR-MesoLabs-OOP-B…
Gbunde Nov 11, 2019
4f4100d
test passed
Gbunde Nov 11, 2019
67e2f35
Merge branch 'dev'
deltaGPhys Nov 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea/*
*.iml
target/
data/
.project
.classpath
.settings
180 changes: 180 additions & 0 deletions ATMUML.uml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement />
<nodes>
<node x="847.0818888888887" y="651.0">Account</node>
<node x="36.5" y="959.0">Savings</node>
<node x="657.4999999999999" y="1447.5">User</node>
<node x="565.5624999999999" y="1093.0">Storeable</node>
<node x="1098.8318888888887" y="982.5">Checking</node>
<node x="167.4999999999999" y="1426.0">Console</node>
<node x="297.6443888888887" y="1193.0">Transaction</node>
<node x="636.2643888888888" y="1862.0">ATM</node>
<node x="769.2643888888888" y="2953.0">Main</node>
<node x="888.75" y="0.0">DB</node>
<node x="904.8318888888887" y="948.0">Investment</node>
</nodes>
<notes />
<edges>
<edge source="User" target="Storeable">
<point x="118.0" y="-146.5" />
<point x="952.4999999999999" y="1406.0" />
<point x="897.3668333333331" y="1406.0" />
<point x="897.3668333333331" y="1168.0" />
<point x="708.0624999999999" y="1168.0" />
<point x="47.5" y="25.0" />
</edge>
<edge source="ATM" target="Savings">
<point x="-171.20000000000005" y="-520.5" />
<point x="679.0643888888887" y="1832.0" />
<point x="85.80433333333315" y="1832.0" />
<point x="85.80433333333315" y="1073.0" />
<point x="69.33333333333337" y="1073.0" />
<point x="-65.66666666666663" y="36.5" />
</edge>
<edge source="Account" target="Storeable">
<point x="-22.444444444444457" y="113.5" />
<point x="925.6374444444443" y="928.0" />
<point x="647.0624999999999" y="928.0" />
<point x="647.0624999999999" y="1073.0" />
<point x="660.5624999999999" y="1073.0" />
<point x="0.0" y="-25.0" />
</edge>
<edge source="Account" target="DB">
<point x="5.6843418860808015E-14" y="-113.5" />
<point x="948.0818888888888" y="631.0" />
<point x="1002.375" y="631.0" />
<point x="-37.875" y="300.5" />
</edge>
<edge source="Storeable" target="Savings">
<point x="-76.0" y="-25.0" />
<point x="584.5624999999999" y="1073.0" />
<point x="200.66666666666663" y="1073.0" />
<point x="65.66666666666663" y="36.5" />
</edge>
<edge source="Main" target="ATM">
<point x="40.5" y="-25.0" />
<point x="890.7643888888888" y="2928.0" />
<point x="957.2643888888888" y="2928.0" />
<point x="107.0" y="520.5" />
</edge>
<edge source="Transaction" target="Storeable">
<point x="0.0" y="-91.5" />
<point x="392.6443888888887" y="1168.0" />
<point x="613.0624999999999" y="1168.0" />
<point x="-47.5" y="25.0" />
</edge>
<edge source="Console" target="Transaction">
<point x="0.0" y="-168.0" />
<point x="402.4999999999999" y="1406.0" />
<point x="392.6443888888887" y="1406.0" />
<point x="0.0" y="91.5" />
</edge>
<edge source="ATM" target="Transaction">
<point x="-85.60000000000002" y="-520.5" />
<point x="764.6643888888888" y="1802.0" />
<point x="157.0" y="1802.0" />
<point x="157.0" y="1406.0" />
<point x="354.6443888888887" y="1406.0" />
<point x="-38.0" y="91.5" />
</edge>
<edge source="Investment" target="Storeable">
<point x="-21.625" y="47.5" />
<point x="969.7068888888887" y="1073.0" />
<point x="736.5624999999999" y="1073.0" />
<point x="76.0" y="-25.0" />
</edge>
<edge source="ATM" target="Investment">
<point x="57.06666666666672" y="-520.5" />
<point x="907.3310555555555" y="1792.0" />
<point x="1021.9999999999999" y="1792.0" />
<point x="1021.9999999999999" y="1073.0" />
<point x="1012.9568888888887" y="1073.0" />
<point x="21.625" y="47.5" />
</edge>
<edge source="ATM" target="Console">
<point x="-57.066666666666606" y="-520.5" />
<point x="793.1977222222222" y="1792.0" />
<point x="402.4999999999999" y="1792.0" />
<point x="0.0" y="168.0" />
</edge>
<edge source="ATM" target="Checking">
<point x="142.66666666666674" y="-520.5" />
<point x="992.9310555555555" y="1822.0" />
<point x="1149.8318888888887" y="1822.0" />
<point x="0.0" y="13.0" />
</edge>
<edge source="Savings" target="Account">
<point x="-49.249999999999886" y="-36.5" />
<point x="85.75000000000011" y="898.0" />
<point x="858.304111111111" y="898.0" />
<point x="-89.77777777777777" y="113.5" />
</edge>
<edge source="ATM" target="User">
<point x="28.533333333333303" y="-520.5" />
<point x="878.7977222222221" y="1782.0" />
<point x="952.4999999999999" y="1782.0" />
<point x="118.0" y="146.5" />
</edge>
<edge source="Storeable" target="Account">
<point x="-38.0" y="-25.0" />
<point x="622.5624999999999" y="1073.0" />
<point x="636.0624999999999" y="1073.0" />
<point x="636.0624999999999" y="918.0" />
<point x="903.1929999999999" y="918.0" />
<point x="-44.88888888888886" y="113.5" />
</edge>
<edge source="ATM" target="Account">
<point x="114.13333333333344" y="-520.5" />
<point x="964.3977222222222" y="1812.0" />
<point x="1088.3318888888887" y="1812.0" />
<point x="1088.3318888888887" y="918.0" />
<point x="992.9707777777776" y="918.0" />
<point x="44.88888888888886" y="113.5" />
</edge>
<edge source="ATM" target="DB">
<point x="171.20000000000002" y="-520.5" />
<point x="1021.4643888888888" y="1832.0" />
<point x="1211.3318888888887" y="1832.0" />
<point x="1211.3318888888887" y="631.0" />
<point x="1078.125" y="631.0" />
<point x="37.875" y="300.5" />
</edge>
<edge source="Checking" target="Account">
<point x="25.5" y="-13.0" />
<point x="1175.3318888888887" y="898.0" />
<point x="1037.8596666666665" y="898.0" />
<point x="89.77777777777777" y="113.5" />
</edge>
<edge source="Investment" target="Account">
<point x="43.25" y="-47.5" />
<point x="1034.5818888888887" y="928.0" />
<point x="970.5263333333332" y="928.0" />
<point x="22.444444444444457" y="113.5" />
</edge>
<edge source="User" target="Transaction">
<point x="0.0" y="-146.5" />
<point x="834.4999999999999" y="1396.0" />
<point x="468.6443888888887" y="1396.0" />
<point x="76.0" y="91.5" />
</edge>
<edge source="Storeable" target="Investment">
<point x="38.0" y="-25.0" />
<point x="698.5624999999999" y="1063.0" />
<point x="926.4568888888887" y="1063.0" />
<point x="-64.875" y="47.5" />
</edge>
</edges>
<settings layout="Hierarchic Group" zoom="1.0" x="389.0" y="1298.0" />
<SelectedNodes>
<node>Main</node>
</SelectedNodes>
<Categories>
<Category>Fields</Category>
<Category>Methods</Category>
</Categories>
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>

16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Access Control Lab - Bank Account
The original lab can be found [here](https://gist.github.com/DavidGinzberg/5ccd3191eed52b04c4c3541fa2b2cbf7)
## Notes for Use
- The DB class defines database objects and a number of attendant methods to delete, search, modify, and add rows in the database
- Information is stored in csv files in the /data folder. An example data set is included and will be run when you run `main()`. Any changes to accounts, users, or additional transactions will be saved there. These files are in the `.gitignore`, so any changes you make locally wouldn't overwrite them
- One example user, for convenience of entry during testing, has card number 1 and password 1234
- There are a couple of test database files (`test.db` and `testbad.csv` which are used in certain tests. Other tests create and destory temporary database files
- Every time a user logs in, interest is earned on savings accounts and investments get returns, based on random chance and risk tolerance defined when creating the account
- Interest rates go up and down by random amounts with a probability of 20%
- Overdraft policies allow blocking such requests, allowing them, or attempting automatic transfer from another account
- All of those changes are recorded as transactions
- When closing an account, there is an option to transfer to another account, if the closing account isn't empty
- Frozen accounts can't be viewed or modified, and don't earn interest/returns

## Description

This lab focuses on implementing a simulated bank account and practicing using access control features of the Java language. By the end of this lab students should feel comfortable setting class members to be private or public, creating accessor and mutator functions for fields as needed, and using those methods to access the underlying fields.
Expand Down Expand Up @@ -28,13 +40,13 @@ Accounts must have:

Code that uses the Account class should not be able to change the properties of an account directly; this should be something handled by methods provided by the account class. The methods should enforce the following behavior:

- Account type and account number must be set during account creation (in the constructor) and cannot be changed afterward.
- accounts.Account type and account number must be set during account creation (in the constructor) and cannot be changed afterward.
- Balance inquiries are allowed at any time except while an account is under an OFAC freeze
- The balance can be changed with a credit (add money) or debit (remove money)
- Balance changes can only occur on `Open` accounts.
- The `debit` and `credit` methods should return an approval status indicating whether the transaction was approved.
- Accounts can transfer funds to or from another account with the same account holder -- Neither account's balance should fall below zero as a result of a transfer.
- Account holder's name must be set during account creation. It can be changed later (but not on closed accounts)
- accounts.Account holder's name must be set during account creation. It can be changed later (but not on closed accounts)
- Accounts with overdraft prevention enabled cannot over-draw (a debit that is greater than the account balance will be declined and the balance will not change)
- Accounts, once closed, cannot be reopened (frozen accounts can be unfrozen).
- No changes to the balance of an account can take place while it is closed or frozen
Expand Down
Binary file added data/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions data/accounts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"350","275","3810.0","Checking","ON","OPEN"
"33","275","5556.84","Savings","0.24","OPEN"
"2","275","88609.38","Investment","0.06","OPEN"
"998","275","320.0","Checking","ON","CLOSED"
"9198","275","30020.0","Checking","ON","OFAC"

4 changes: 4 additions & 0 deletions data/test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Item 1","Item 2","Item 3","Item 4"
"Item 1b","Item 2b","Item 3b","Item 4b"
"Item 1c","Item 2c","Item 3c","Item 4c"
"Item 1d","Item 2d","Item 3d","Item 4d"
4 changes: 4 additions & 0 deletions data/testBad.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Item 1","Item 2","Item 3","Item 4"
"Item 1b","Item 2b","Item 3b","Item 4b"
"Item 1c","Item 2c","Item 3c"
"Item 1d","Item 2d","Item 3d","Item 4d"
Empty file added data/testaccountDB.csv
Empty file.
Empty file added data/testtransactionDB.csv
Empty file.
Empty file added data/testuserDB.csv
Empty file.
23 changes: 23 additions & 0 deletions data/transactions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"credit","172","2000.00","Sun Nov 10 11:53:50 EST 2019","Opened account"
"debit","172","-1000.00","Sun Nov 10 11:54:02 EST 2019","Transfer to account 350"
"credit","350","1000.00","Sun Nov 10 11:54:02 EST 2019","Transfer from account 172"
"debit","172","-1000.00","Sun Nov 10 11:54:21 EST 2019","Transfer to account 350"
"credit","350","1000.00","Sun Nov 10 11:54:21 EST 2019","Transfer from account 172"
"debit","172","0.00","Sun Nov 10 11:54:21 EST 2019","Account Closed"
"credit","33","5690.19","Sun Nov 10 11:56:40 EST 2019","Interest rate changed to 00.23"
"credit","33","13.09","Sun Nov 10 11:56:40 EST 2019","Interest earned"
"debit","2","-1175.84","Sun Nov 10 11:56:40 EST 2019","Investment returns"
"credit","165","1000.00","Sun Nov 10 11:56:48 EST 2019","Opened account"
"credit","33","13.12","Sun Nov 10 12:00:39 EST 2019","Interest earned"
"credit","2","3000.22","Sun Nov 10 12:00:39 EST 2019","Investment returns"
"debit","165","-1000.00","Sun Nov 10 12:00:53 EST 2019","Transfer to account 350"
"credit","350","1000.00","Sun Nov 10 12:00:53 EST 2019","Transfer from account 165"
"debit","165","0.00","Sun Nov 10 12:00:53 EST 2019","Account Closed"
"credit","206","1000.00","Sun Nov 10 22:02:32 EST 2019","Opened account"
"credit","33","5729.55","Sun Nov 10 22:54:34 EST 2019","Interest rate changed to 00.24"
"credit","33","13.75","Sun Nov 10 22:54:34 EST 2019","Interest earned"
"debit","2","-419.17","Sun Nov 10 22:54:34 EST 2019","Investment returns"
"debit","33","-100.00","Sun Nov 10 22:56:04 EST 2019","ATM deposit"
"credit","33","13.54","Sun Nov 10 22:56:43 EST 2019","Interest earned"
"credit","2","2532.37","Sun Nov 10 22:56:43 EST 2019","Investment returns"
"debit","33","-100.00","Sun Nov 10 22:56:49 EST 2019","ATM withdrawal"
6 changes: 6 additions & 0 deletions data/users.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"719","john","jimmy","90486264","blorp"
"606","jones","jim","84170304","jimmy"
"275","peasy","easy","1","1234"
"827","davis","john","16690334","12345"
"828","john","big","83500714","69"
"829","jay","john","68428999","2345"
29 changes: 28 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,35 @@
<modelVersion>4.0.0</modelVersion>

<groupId>io.zipcoder</groupId>
<artifactId>AccessControlLab-Bank Account</artifactId>
<artifactId>project-2-atm</artifactId>
<version>1.0-SNAPSHOT</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>pl.pragmatists</groupId>
<artifactId>JUnitParams</artifactId>
<version>1.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>4.5</version>
</dependency>
</dependencies>

</project>
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
Binary file added src/main/java/.DS_Store
Binary file not shown.
Loading