package omino.utilities; import junit.framework.TestCase; public class TestOmSystem extends TestCase { public void testPrintf() { OmSystem.setSaveStdOut(true); OmSystem.setSendStdOut(false); OmSystem.printf("Hello, %s!\n","Omino"); String o = OmSystem.getSavedStdOut(); assertEquals("captured standard out","Hello, Omino!\n",o); } }