Examples of ConfigurationEntry


Examples of org.apache.qpid.server.configuration.ConfigurationEntry

    public void testCreateVirtualHostFromStoreConfigAtrributes()
    {
        StatisticsGatherer statisticsGatherer = mock(StatisticsGatherer.class);
        SecurityManager securityManager = mock(SecurityManager.class);
        ConfigurationEntry entry = mock(ConfigurationEntry.class);
        Broker parent = mock(Broker.class);
        when(parent.getAttribute(Broker.VIRTUALHOST_HOUSEKEEPING_CHECK_PERIOD)).thenReturn(3000l);
        when(parent.getSecurityManager()).thenReturn(securityManager);

        VirtualHostRecoverer recoverer = new VirtualHostRecoverer(statisticsGatherer);
        Map<String, Object> attributes = new HashMap<String, Object>();
        attributes.put(VirtualHost.NAME, getName());
        attributes.put(VirtualHost.TYPE, StandardVirtualHostFactory.TYPE);

        attributes.put(VirtualHost.STORE_TYPE, "TESTMEMORY");
        when(entry.getAttributes()).thenReturn(attributes);

        VirtualHost host = recoverer.create(null, entry, parent);

        assertNotNull("Null is returned", host);
        assertEquals("Unexpected name", getName(), host.getName());
View Full Code Here

Examples of org.apache.qpid.server.configuration.ConfigurationEntry

    public void testCreateWithNullJson()
    {
        MemoryConfigurationEntryStore store = new MemoryConfigurationEntryStore(null, Collections.<String,String>emptyMap());

        ConfigurationEntry root = store.getRootEntry();
        assertNotNull("Root entry is not found", root);
    }
View Full Code Here

Examples of org.jamesii.asf.spdm.generators.ConfigurationEntry

    int predCount = 0;
    Collections.shuffle(testTuples);

    for (int i = 0; i < testTuples.size() - 1; i++) {
      for (int j = i + 1; j < testTuples.size(); j++) {
        ConfigurationEntry entry1 =
            new ConfigurationEntry(testTuples.get(i).getConfiguration());
        ConfigurationEntry entry2 =
            new ConfigurationEntry(testTuples.get(j).getConfiguration());
        predCount++;
        errors +=
            calculateError(predictor, features, entry1, entry2,
                testTuples.get(i), testTuples.get(i + 1));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.