Commit 99152dce authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Updated testing script

parent b2fb1ffe
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
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;
    }
}
+13 −0
Original line number Diff line number Diff line
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
+2 −1
Original line number Diff line number Diff line
#!/usr/bin/env sh

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