}
@Test
public void loadDeployments() throws Exception
{
DeploymentStore store = injector.getInstance(DeploymentStore.class);
TestCallback<List<DeploymentRecord>> callback = new TestCallback<List<DeploymentRecord>>() {
@Override
public void onSuccess(List<DeploymentRecord> result) {
assertTrue("Expected no deployments", result.isEmpty());
didCallback = true;
}
};
ServerGroupRecord group = new ServerGroupImpl();
group.setGroupName("main-server-group");
group.setProfileName("default");
//group.setJvm(new Jvm());
group.setSocketBinding("standard-sockets");
List<ServerGroupRecord> groups = new ArrayList<ServerGroupRecord>();
groups.add(group);
store.loadDeployments(groups, callback);
synchronized (callback) {
callback.wait(500);
}