Search in sources :

Example 6 with JsonRpcEntityType

use of org.eclipse.che.api.core.jsonrpc.JsonRpcEntityQualifier.JsonRpcEntityType in project che by eclipse.

the class JsonRpcEntityQualifierTest method shouldQualifyUndefinedWhenMessageContainsNoValuableKeys.

@Test
public void shouldQualifyUndefinedWhenMessageContainsNoValuableKeys() {
    JsonObject jsonObject = new JsonObject();
    JsonRpcEntityType type = qualifier.qualify(jsonObject.toString());
    assertEquals(JsonRpcEntityType.UNDEFINED, type);
}
Also used : JsonRpcEntityType(org.eclipse.che.api.core.jsonrpc.JsonRpcEntityQualifier.JsonRpcEntityType) JsonObject(com.google.gson.JsonObject) Test(org.testng.annotations.Test)

Aggregations

JsonRpcEntityType (org.eclipse.che.api.core.jsonrpc.JsonRpcEntityQualifier.JsonRpcEntityType)6 JsonObject (com.google.gson.JsonObject)5 Test (org.testng.annotations.Test)5