Examples of TestUtils


Examples of org.apache.jackrabbit.oak.plugins.index.solr.TestUtils

        root.commit();
    }

    @Override
    protected ContentRepository createRepository() {
        TestUtils provider = new TestUtils();
        solrServer = provider.getSolrServer();
        try {
            return new Oak().with(new InitialContent())
                    .with(new OpenSecurityProvider())
                    .with(new SolrQueryIndexProvider(provider, provider))
                    .with(new SolrIndexEditorProvider(provider, provider))
View Full Code Here

Examples of org.apache.yoko.bindings.corba.TestUtils

        bus = BusFactory.newInstance().getDefaultBus();      
        BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);       
        factory = (BindingFactory)bfm.getBindingFactory("http://schemas.apache.org/yoko/bindings/corba");
        bfm.registerBindingFactory(CorbaConstants.NU_WSDL_CORBA, factory);
       
        testUtils = new TestUtils();
   
    }
View Full Code Here

Examples of org.apache.yoko.bindings.corba.TestUtils

        props.put("org.omg.CORBA.ORBClass", "org.apache.yoko.orb.CORBA.ORB");
        props.put("org.omg.CORBA.ORBSingletonClass", "org.apache.yoko.orb.CORBA.ORBSingleton");
        props.put("yoko.orb.id", "Yoko-Server-Binding");
        orb = ORB.init(new String[0], props);
       
        testUtils = new TestUtils();
    }
View Full Code Here

Examples of org.apache.yoko.tools.utils.TestUtils

    private File output;

    public void setUp() {
        super.setUp();
        try {
            TestUtils utils = new TestUtils(IDLToWSDL.TOOL_NAME, IDLToWSDL.class
                .getResourceAsStream("/toolspecs/idl2wsdl.xml"));
            usageBuf = new StringBuffer(utils.getUsage());
            bout = new ByteArrayOutputStream();
            newOut = new PrintStream(bout);
            //System.setOut(newOut);
            //System.setErr(newOut);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.yoko.tools.utils.TestUtils

    private File output;

    public void setUp() {
        super.setUp();
        try {
            TestUtils utils = new TestUtils(WSDLToIDL.TOOL_NAME, WSDLToIDL.class
                .getResourceAsStream("/toolspecs/wsdl2idl.xml"));
            usageBuf = new StringBuffer(utils.getUsage());
            bout = new ByteArrayOutputStream();
            newOut = new PrintStream(bout);
            System.setOut(newOut);
            System.setErr(newOut);
        } catch (Exception e) {
View Full Code Here

Examples of org.h2.test.unit.TestUtils

        new TestStringCache().runTest(this);
        new TestStringUtils().runTest(this);
        new TestTools().runTest(this);
        new TestTraceSystem().runTest(this);
        new TestUpgrade().runTest(this);
        new TestUtils().runTest(this);
        new TestValue().runTest(this);
        new TestValueHashMap().runTest(this);
        new TestValueMemory().runTest(this);
    }
View Full Code Here

Examples of org.jacorb.test.notification.TestUtils

    /**
     * setup EventChannelFactory, FilterFactory and Any with Testdata
     */
    public void setUpTest() throws Exception
    {
        testUtils_ = new TestUtils();

        factory_ = EventChannelFactoryHelper.narrow(getORB().resolve_initial_references(
                "NotificationService"));

        // prepare test data
View Full Code Here

Examples of org.martinlaw.util.TestUtils

  }

  @Test
  public void testToHtml() throws InstantiationException, IllegalAccessException {
    //use court case consideration
    TestUtils utils = new TestUtils();
    MatterConsideration csd = (MatterConsideration) utils.getTestConsideration();
    ConsiderationType type =  new ConsiderationType();
    final String considerationTypeName = "reserve";
    type.setName(considerationTypeName);
    csd.setConsiderationType(type);
    BigDecimal[] amounts = {new BigDecimal(450), new BigDecimal(640)};
    for (BigDecimal amount: amounts) {
      final MatterTransactionDoc testTransaction = (MatterTransactionDoc) utils.getMockTransaction(amount);
      csd.getTransactions().add(testTransaction);
    }
   
    String expected = "<b>" + considerationTypeName + "</b>:&nbsp;KES 2,090.00";
    assertEquals("consideration html differs", expected, csd.toHtml());
   
    csd = (MatterConsideration) utils.getTestConsideration();
    csd.setAmount(new BigDecimal(0));
    assertEquals("consideration html differs", "", csd.toHtml());
   
    csd = (MatterConsideration) utils.getTestConsideration();
    expected = "<b>" + considerationTypeName + "</b>:&nbsp;KES 1,000.00";
    csd.setConsiderationType(type);
    assertEquals("consideration html differs", expected, csd.toHtml());
  }
View Full Code Here

Examples of org.vertx.java.framework.TestUtils

        amqpConn = cf.newConnection();
        chan = amqpConn.createChannel();

        amqpQueue = chan.queueDeclare().getQueue();

        tu = new TestUtils(vertx);

        logger.finer("starting js test client");

        startApp(
            "amqp_test_client.js",
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.