Added test
This commit is contained in:
parent
85cb4a4e55
commit
fdf33f87a1
|
@ -284,4 +284,19 @@ public class ResourceRegistryClientTest extends ContextTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testParameters() throws Exception {
|
||||
resourceRegistryClient.setLimit(1);
|
||||
resourceRegistryClient.setIncludeMeta(true);
|
||||
List<Context> contexts = ((ResourceRegistryClientImpl) resourceRegistryClient).getAllContextFromServer();
|
||||
Assert.assertTrue(contexts.size()==1);
|
||||
Assert.assertTrue(contexts.get(0).getMetadata()!=null);
|
||||
|
||||
resourceRegistryClient.setLimit(1);
|
||||
resourceRegistryClient.setIncludeMeta(false);
|
||||
contexts = ((ResourceRegistryClientImpl) resourceRegistryClient).getAllContextFromServer();
|
||||
Assert.assertTrue(contexts.size()==1);
|
||||
Assert.assertTrue(contexts.get(0).getMetadata()==null);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue