Compare commits

...

2 Commits

Author SHA1 Message Date
3b4e4b6d80 Add java test script 2021-02-03 11:09:41 -05:00
72077cd714 Update ignore PNG 2021-02-03 11:08:55 -05:00
3 changed files with 15 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.swp *.swp
*.class *.class
*.png

View File

@ -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
View 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/