Compare commits
2 Commits
47ec357f57
...
3b4e4b6d80
Author | SHA1 | Date | |
---|---|---|---|
3b4e4b6d80 | |||
72077cd714 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*.swp
|
*.swp
|
||||||
*.class
|
*.class
|
||||||
|
*.png
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
public class fuck {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
Student jack = new Student();
|
|
||||||
|
|
||||||
System.out.println(jack.getGPA());
|
|
||||||
jack.setGPA(2.0);
|
|
||||||
System.out.println(jack.getGPA());
|
|
||||||
|
|
||||||
System.out.println(jack.getName());
|
|
||||||
jack.setName("fart");
|
|
||||||
System.out.println(jack.getName());
|
|
||||||
}
|
|
||||||
}
|
|
14
runJavaTests/runJavaTests.sh
Executable file
14
runJavaTests/runJavaTests.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
javac -cp /usr/share/java/junit4.jar *.java
|
||||||
|
java -cp /usr/share/java/junit4.jar:. org.junit.runner.JUnitCore $1
|
||||||
|
|
||||||
|
### Works on Ubunutu (tested on Mint).
|
||||||
|
|
||||||
|
### Install Junit4 from the repos.
|
||||||
|
### NOTE: Make sure you are using the right version of Junit,
|
||||||
|
### Update this script as needed as tests are upgraded for correct version
|
||||||
|
|
||||||
|
### Useage: ./runJavaTests.sh [test-name]
|
||||||
|
### Example: ./runJavaTests.sh MyStudentTest
|
||||||
|
|
||||||
|
### Works just fine everywhere if put in /usr/share/bin/
|
Loading…
x
Reference in New Issue
Block a user