import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasEntry;
-import static org.hamcrest.Matchers.not;
+import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThrows;
webOfTrustPlugin.createIdentity("Test Nickname", "test-context", true);
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.Message", equalTo("CreateIdentity")),
hasField("Param.Nickname", equalTo("Test Nickname")),
webOfTrustPlugin.createIdentity("Test Nickname", "test-context", true, "insert-uri");
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.Message", equalTo("CreateIdentity")),
hasField("Param.Nickname", equalTo("Test Nickname")),
webOfTrustPlugin.createIdentity("Test Nickname", "test-context", true, "some-request-uri", "insert-uri");
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.Message", equalTo("CreateIdentity")),
hasField("Param.Nickname", equalTo("Test Nickname")),
webOfTrustPlugin.getOwnIdentities();
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.Message", equalTo("GetOwnIdentities"))
));
webOfTrustPlugin.getOwnIdentites();
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.Message", equalTo("GetOwnIdentities"))
));
webOfTrustPlugin.getIdentityTrust(ownIdentity, "other-id");
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.Message", equalTo("GetIdentity")),
hasField("Param.Truster", equalTo("own-id")),
webOfTrustPlugin.addIdentity("USK@foo,bar/baz/123");
assertThat(fcpConnection.sentMessages.get(0), allOf(
isNamed(equalTo("FCPPluginMessage")),
- hasField("Identifier", not(nullValue())),
+ hasField("Identifier", notNullValue()),
hasField("PluginName", equalTo("plugins.WebOfTrust.WebOfTrust")),
hasField("Param.RequestURI", equalTo("USK@foo,bar/baz/123"))
));