Package org.jboss.as.console.client.shared.subsys.jca.model

Examples of org.jboss.as.console.client.shared.subsys.jca.model.DataSourceStore


    }

    @Test
    public void loadDataSources() throws Exception
    {
        DataSourceStore store = injector.getInstance(DataSourceStore.class);
        TestCallback<List<DataSource>> callback = new TestCallback<List<DataSource>>() {

            @Override
            public void onSuccess(List<DataSource> result) {
                assertTrue("Expected at least default datasource h2", result.size()>0);

                didCallback = true;
            }
        };

        store.loadDataSources(callback);

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


    }

    @Test
    public void createDataSources() throws Exception
    {
        DataSourceStore store = injector.getInstance(DataSourceStore.class);
        TestCallback<ResponseWrapper<Boolean>> callback = new TestCallback<ResponseWrapper<Boolean>>() {

            @Override
            public void onSuccess(ResponseWrapper<Boolean> response) {
                assertTrue("Expected successful outcome", response.getUnderlying());
                didCallback = true;
            }
        };

        DataSource entity = createEntity();
        store.createDataSource(entity, callback);

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

TOP

Related Classes of org.jboss.as.console.client.shared.subsys.jca.model.DataSourceStore

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.