From 82589bb93e5b3d7a4c99394c1486c08e1d63eec4 Mon Sep 17 00:00:00 2001 From: mo Date: Tue, 18 Jun 2019 16:27:29 -0600 Subject: try to understand how this confusing, untestable api is supposed to work --- src/Q4/RandomSumGameTest.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Q4/RandomSumGameTest.java (limited to 'src/Q4/RandomSumGameTest.java') diff --git a/src/Q4/RandomSumGameTest.java b/src/Q4/RandomSumGameTest.java new file mode 100644 index 0000000..3a5e26c --- /dev/null +++ b/src/Q4/RandomSumGameTest.java @@ -0,0 +1,24 @@ +package ca.mokhan.test; + +import Q4.*; +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +public class RandomSumGameTest extends TestCase { + private RandomSumGame subject; + + public RandomSumGameTest(String testName) { + super(testName); + this.subject = new RandomSumGame(); + } + + public static Test suite() { + return new TestSuite(RandomSumGameTest.class); + } + + public void test_play() { + subject.play(); + assertTrue(true); + } +} -- cgit v1.2.3