Исправления тестов

This commit is contained in:
Mark Struchkov 2019-07-12 17:13:49 +03:00
parent f2ad7bee0f
commit 74ef11e253

View File

@ -82,7 +82,7 @@ public class AutoResponderTest {
TestUnit defaultUnit = TestUnit.builder().message("не знаю").build(); TestUnit defaultUnit = TestUnit.builder().message("не знаю").build();
autoresponder.setDefaultUnit(defaultUnit); autoresponder.setDefaultUnit(defaultUnit);
Assert.assertEquals(((TestUnit) autoresponder.answer(2, "пока")).getMessage(), "не знаю"); Assert.assertEquals("не знаю", ((TestUnit) autoresponder.answer(2, "пока")).getMessage());
} }
@Test(expected = NotFoundUnitException.class) @Test(expected = NotFoundUnitException.class)
@ -93,7 +93,7 @@ public class AutoResponderTest {
@Test @Test
public void regExpAnswer() { public void regExpAnswer() {
String message = ((TestUnit) autoresponder.answer(1, "79101234567")).getMessage(); String message = ((TestUnit) autoresponder.answer(1, "79101234567")).getMessage();
Assert.assertEquals(message, "регулярка"); Assert.assertEquals("регулярка", message);
} }
@Test @Test