/** * Test for method {@link ParameterOperation#checkParametersFormat(String)}. * * @throws ClientMowException */ @Test public void testCheckFormatKo() throws ClientMowException { String move = "5 5\n1 0 N\n\nD\n"; boolean chekFormat = parameterOperation.checkParametersFormat(move); Assert.assertEquals(Boolean.FALSE, chekFormat); }
/** * Test for method {@link ParameterOperation#checkParametersFormat(String)}. * * @throws ClientMowException */ @Test(expected = NullPointerException.class) public void testCheckNPE() throws ClientMowException { String move = null; parameterOperation.checkParametersFormat(move); }