import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; public class SimpleTest { private Doubler doubler; @BeforeEach public void init() { doubler = new MyDoubler(); } @Test public void testIsDouble() { Assertions.assertTrue(doubler.isDouble("couscous"), "'couscous' is a double word"); Assertions.assertTrue(doubler.isDouble("Caucasus"), "'Caucasus' is a double word"); Assertions.assertTrue(doubler.isDouble("cAuCasUs"), "'cAUCasUs' is a double word"); } @Test public void testIsNotDouble() { Assertions.assertFalse(doubler.isDouble("rice"), "'rice' is not a double word"); Assertions.assertFalse(doubler.isDouble("meenemen"), "'meenemen' is not a double word"); } }