Package org.apache.servicemix.jbi.deployer.impl

Examples of org.apache.servicemix.jbi.deployer.impl.Storage.save()


    public void testWiringOnServiceAssemblyConnections() throws Exception {
        ServiceAssemblyDesc descriptor = DescriptorFactory.buildDescriptor(DescriptorFactory.class.getResource("serviceAssembly.xml")).getServiceAssembly();
        final Storage storage = createMock(Storage.class);
        expect(storage.get("state", State.Shutdown.name())).andReturn(State.Shutdown.name());
        storage.put("state", State.Started.name());
        storage.save();
        storage.put("state", State.Stopped.name());
        storage.save();
        replay(storage);

        final List<ServiceRegistration> wires = new LinkedList<ServiceRegistration>();
View Full Code Here


        final Storage storage = createMock(Storage.class);
        expect(storage.get("state", State.Shutdown.name())).andReturn(State.Shutdown.name());
        storage.put("state", State.Started.name());
        storage.save();
        storage.put("state", State.Stopped.name());
        storage.save();
        replay(storage);

        final List<ServiceRegistration> wires = new LinkedList<ServiceRegistration>();
        ServiceAssembly sa = new ServiceAssemblyImpl(null, descriptor, new ArrayList<ServiceUnitImpl>(), storage, new AssemblyReferencesListener(), false) {
            @Override
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.