From 74ef11e253ffce8e72bea3b041e1e1bba429704c Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Fri, 12 Jul 2019 17:13:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sadtech/autoresponder/AutoResponderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/sadtech/autoresponder/AutoResponderTest.java b/src/test/java/org/sadtech/autoresponder/AutoResponderTest.java index b6ccd13..b2a37fb 100644 --- a/src/test/java/org/sadtech/autoresponder/AutoResponderTest.java +++ b/src/test/java/org/sadtech/autoresponder/AutoResponderTest.java @@ -82,7 +82,7 @@ public class AutoResponderTest { TestUnit defaultUnit = TestUnit.builder().message("не знаю").build(); autoresponder.setDefaultUnit(defaultUnit); - Assert.assertEquals(((TestUnit) autoresponder.answer(2, "пока")).getMessage(), "не знаю"); + Assert.assertEquals("не знаю", ((TestUnit) autoresponder.answer(2, "пока")).getMessage()); } @Test(expected = NotFoundUnitException.class) @@ -93,7 +93,7 @@ public class AutoResponderTest { @Test public void regExpAnswer() { String message = ((TestUnit) autoresponder.answer(1, "79101234567")).getMessage(); - Assert.assertEquals(message, "регулярка"); + Assert.assertEquals("регулярка", message); } @Test