Examples of Test


Examples of org.apache.accumulo.test.randomwalk.Test

    }
  }
 
  public void testRWTest() {
   
    Test t1 = new CreateTable();
    assertTrue(t1.toString().equals("org.apache.accumulo.test.randomwalk.unit.CreateTable"));
   
    Test t2 = new CreateTable();
    assertTrue(t1.equals(t2));
  }
View Full Code Here

Examples of org.apache.avro.thrift.test.Test

  @org.junit.Test public void testStruct() throws Exception {

    System.out.println(ThriftData.get().getSchema(Test.class).toString(true));

    Test test = new Test();
    test.setBoolField(true);
    test.setByteField((byte)2);
    test.setI16Field((short)3);
    test.setI16OptionalField((short)14);
    test.setI32Field(4);
    test.setI64Field(5L);
    test.setDoubleField(2.0);
    test.setStringField("foo");
    test.setBinaryField(ByteBuffer.wrap(new byte[] {0,-1}));
    test.setMapField(Collections.singletonMap("x", 1));
    test.setListField(Collections.singletonList(7));
    test.setSetField(Collections.singleton(8));
    test.setEnumField(E.X);
    test.setStructField(new Nested(9));
    test.setFooOrBar(FooOrBar.foo("x"));

    System.out.println(test);

    check(test);
  }
View Full Code Here

Examples of org.apache.batik.test.Test

                                        "dummyFile.svg");

            // Create a valid reference image
            URL refImgURL = createValidReferenceImage(validSVG);

            Test t = new SVGRenderingAccuracyTest(invalidSVGURL.toString(),
                                                  refImgURL.toString());

            setConfig(t,
                      false,
                      SVGRenderingAccuracyTest.ERROR_CANNOT_TRANSCODE_SVG);
View Full Code Here

Examples of org.apache.etch.interoptester.Test

 
  /** @throws Exception */
  @org.junit.Test
  public void parse6() throws Exception
  {
    Test t = Test.parse( itest, parseXml(
      "<test name=\"foo\"><jig><prog name=\"bar\"/></jig></test>" ) );
    assertSame( itest, t.itest() );
    assertEquals( "foo", t.name() );
    assertEquals( 0, t.params().size() );
    assertEquals( 0, t.setup().size() );
    assertEquals( 0, t.support().size() );
    assertEquals( "bar", t.jig().name() );
    assertEquals( 0, t.cleanup().size() );
  }
View Full Code Here

Examples of org.apache.flex.forks.batik.test.Test

                if(child.getNodeType() == Node.ELEMENT_NODE){
                    Element childElement = (Element)child;
                    String tagName = childElement.getTagName().intern();
                    // System.out.println("Processing child : " + tagName);
                    if(tagName == XTS_TEST_TAG){
                        Test t = buildTest(childElement);
                        testSuite.addTest(t);
                    }
                    else if(tagName == XTS_TEST_GROUP_TAG){
                        Test t = buildTestSuite(childElement, testSuite);
                        testSuite.addTest(t);
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.geronimo.test.remote.Test

    try
    {
      Context ctx = new InitialContext();
      TestHome result = (TestHome)ctx.lookup("java:comp/env/ejb/TestBean");
      //TestHome testHome = (TestHome) PortableRemoteObject.narrow(result, TestHome.class);
      Test test = result.create();
      String echo = test.echo("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Reference : Call to bean method returned ->"+echo+" </font><br>");
     
      DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MyDataSource");
          Connection con = ds.getConnection();
          out.println("<font align=Center face=\"Garamond\"> Check Resource Reference : Got Connection ->"+con+" </font><br>");
View Full Code Here

Examples of org.apache.notgeronimo.itests.naming.common.Test

* @version $Rev:  $ $Date:  $
*/
public class StatelessBean implements SessionBean {

    public void testWebService() {
        Test test = new Test();
        try {
            test.testWebServiceLookup();
        } catch (Exception e) {
            throw new EJBException(e);
        }

    }
View Full Code Here

Examples of org.apache.ws.jaxme.tests.printparse.Test

     */
    public void testPrint() throws Exception {
      boolean[] bools = new boolean[]{false, true};
        int[] ints = new int[]{0,1};
        for (int i = 0;  i < bools.length;  i++) {
            Test test = new TestImpl();
            test.setBool(bools[i]);
            StringWriter sw = new StringWriter();
            Marshaller m = getJAXBContext().createMarshaller();
            m.setProperty(JMMarshallerImpl.JAXME_XML_DECLARATION, Boolean.FALSE);
            m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.FALSE);
            m.marshal(test, sw);
View Full Code Here

Examples of org.apache.xerces.impl.xs.alternative.Test

        // create type alternative
        XSTypeAlternativeImpl typeAlternative = new XSTypeAlternativeImpl(element.fName, alternativeType, annotations);

        // now look for other optional attributes like test and xpathDefaultNamespace
        if (test != null) {
            Test testExpr = null;
            //set the test attribute value
            try {
               testExpr = new Test(new XPath20(test, fSymbolTable, schemaDoc.fNamespaceSupport),
                                       typeAlternative,
                                       schemaDoc.fNamespaceSupport);
            }
            catch (XPathException e) {
               // fall back to full XPath 2.0 support, with PsychoPath engine
               try {
                  XPathParser xpp = new JFlexCupParser();
                  XPath xp = xpp.parse("boolean(" + test + ")");
                  testExpr = new Test(xp, typeAlternative, schemaDoc.fNamespaceSupport);
               } catch(XPathParserException ex) {
                  reportSchemaError("c-cta-xpath", new Object[] { test }, altElement);
                  //if the XPath is invalid, create a Test without an expression
                  testExpr = new Test((XPath20) null, typeAlternative,
                                       schemaDoc.fNamespaceSupport);
               }               
            }           
            typeAlternative.setTest(testExpr);
        }
View Full Code Here

Examples of org.apache.xerces.impl.xs.assertion.Test

                   
                    // create an assertion object
                    XSAssertImpl assertImpl = new XSAssertImpl(typeDef,
                                                           annotations,
                                                           fSchemaHandler);
                    Test testExpr = new Test(new XPath20Assert(test, fSymbolTable,
                                             new SchemaNamespaceSupport(schemaDoc.
                                             fNamespaceSupport)), assertImpl);                
                    assertImpl.setAssertKind(XSConstants.ASSERTION_FACET);
                    assertImpl.setTest(testExpr);
                    assertImpl.setXPathDefaultNamespace(xpathDefaultNamespace);
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.