Package org.jboss.as.console.client.domain.model

Examples of org.jboss.as.console.client.domain.model.ServerGroupStore


    }

    @Test
    public void loadServerGroups() throws Exception
    {
        ServerGroupStore store = injector.getInstance(ServerGroupStore.class);
        TestCallback<List<ServerGroupRecord>> callback = new TestCallback<List<ServerGroupRecord>>() {

            @Override
            public void onSuccess(List<ServerGroupRecord> result) {
                assertTrue("No groups loaded", result.size()>0);
                assertEquals("main-server-group",result.get(0).getGroupName());
                didCallback = true;
            }
        };

        store.loadServerGroups(callback);

        synchronized (callback) {
            callback.wait(500);
        }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.domain.model.ServerGroupStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.