Package org.apache.qpid.server.model.adapter

Examples of org.apache.qpid.server.model.adapter.FileSystemPreferencesProviderImpl


                                                 ".prefs.json",
                                                 "{\"test_user\":{\"pref1\": \"pref1Value\", \"pref2\": 1.0} }");
        try
        {
            attributes.put(FileSystemPreferencesProvider.PATH, file.getAbsolutePath());
            PreferencesProvider provider = new FileSystemPreferencesProviderImpl(attributes,_authenticationProvider);
            provider.open();
            assertNotNull("Preferences provider was not recovered", provider);
            assertEquals("Unexpected name", "test-provider", provider.getName());
            assertEquals("Unexpected id", id, provider.getId());
            assertEquals("Unexpected path", file.getAbsolutePath(), provider.getAttribute(
                    FileSystemPreferencesProvider.PATH));
        }
        finally
        {
            file.delete();
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.model.adapter.FileSystemPreferencesProviderImpl

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.