Package com.calclab.suco.client.ioc

Examples of com.calclab.suco.client.ioc.Container


public class SucoFactoryTests {

    @Test
    public void shouldHaveDefaultScopes() {
  final Container container = SucoFactory.create();
  assertNotNull(container.getInstance(NoDecoration.class));
  assertNotNull(container.getInstance(Singleton.class));
    }
View Full Code Here


public class SucoFactoryTests {

    @Test
    public void shouldHaveDefaultScopes() {
  final Container container = SucoFactory.create();
  assertNotNull(container.getInstance(NoDecoration.class));
  assertNotNull(container.getInstance(Singleton.class));
    }
View Full Code Here

  }
    }

    @Test
    public void theTest() {
  final Container container = SucoFactory.create();
  new ABModule().onInstall(container);
  final ClassA instanceA = container.getInstance(ClassA.class);
  assertTrue(instanceA.isBCreated());
    }
View Full Code Here

  }
    }

    @Test
    public void theTest() {
  final Container container = SucoFactory.create();
  new ABModule().onInstall(container);
  final ClassA instanceA = container.getInstance(ClassA.class);
  assertTrue(instanceA.isBCreated());
    }
View Full Code Here

TOP

Related Classes of com.calclab.suco.client.ioc.Container

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.