Commit 701b5837 authored by Marco Descher's avatar Marco Descher 🏔

[16515] Try to fix test

parent 148ba223
Pipeline #11459 failed with stages
in 1 minute and 32 seconds
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" name="ch.elexis.core.services.MessageService">
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0" name="ch.elexis.core.services.MessageService">
<service>
<provide interface="ch.elexis.core.services.IMessageService"/>
</service>
<reference bind="setMessageTransporter" cardinality="0..n" interface="ch.elexis.core.services.IMessageTransporter" name="MessageTransporter" policy="dynamic" policy-option="greedy" unbind="unsetMessageTransporter"/>
<reference cardinality="1..1" field="contextService" interface="ch.elexis.core.services.IContextService" name="contextService"/>
<implementation class="ch.elexis.core.services.MessageService"/>
</scr:component>
\ No newline at end of file
......@@ -23,8 +23,8 @@ public class IMessageServiceTest extends AbstractServiceTest {
message.setMessageText("internalDatabaseMessage_explicitScheme_fromUser");
message.addMessageCode(MessageCode.Key.SenderSubId, "tests.messageServiceTest");
ObjectStatus status = service.send(message);
assertEquals("internaldb", status.getObject());
assertTrue(status.isOK());
assertTrue(status.getMessage(), status.isOK());
assertEquals(status.getMessage(), "internaldb", status.getObject());
}
@Test
......@@ -35,7 +35,7 @@ public class IMessageServiceTest extends AbstractServiceTest {
message.setMessageText("internalDatabaseMessage_internalScheme_fromUser");
message.addMessageCode(MessageCode.Key.SenderSubId, "tests.messageServiceTest");
ObjectStatus status = service.send(message);
assertTrue(status.isOK());
assertTrue(status.getMessage(), status.isOK());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment