To compile, use the following command.
javac -cp $PWD/junit-4.12.jar paxos/*.java
To run the test, use the following command.
for i in $(seq 10); do java -cp $PWD/junit-4.12.jar:$PWD/hamcrest-core-1.3.jar:. org.junit.runner.JUnitCore paxos.PaxosTest; done
To compile, use the following command.
javac -cp $PWD/junit-4.12.jar:. kvpaxos/*.java
To run the test, use the following command.
for i in $(seq 10); do java -cp $PWD/junit-4.12.jar:$PWD/hamcrest-core-1.3.jar:. org.junit.runner.JUnitCore kvpaxos.KVPaxosTest; done
Note: two additional test cases are added to KVPaxosTest, shouldn't we receive extra credits :)