Skip to content
Snippets Groups Projects
Commit 99152dce authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Updated testing script

parent b2fb1ffe
No related branches found
No related tags found
No related merge requests found
package trachtenberg.ari.demoproject;
/**
* Does addition.
*/
public class Plusser
{
/**
* @param aa One addend
* @param bb Another addend
* @return The sum of aa and bb
*/
public static int plus(int aa, int bb) {
return aa+bb;
}
}
package trachtenberg.ari.demoproject;
import static org.junit.Assert.*;
import org.junit.Test;
public class PlusserTest {
@Test
public void plus() {
assertEquals(Plusser.plus(1,1),2);
}
// tests that Plusser works
}
\ No newline at end of file
#!/usr/bin/env sh
echo "This is a test ... it is only a test."
\ No newline at end of file
echo "This is a test ... it is only a test."
java -jar junit-platform-console-standalone-1.9.0.jar --cp out/production/test --scan-classpath --reports-dir=testresults
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment