Package junit.framework

Examples of junit.framework.JUnit4TestAdapter


  TestClassMethodsRunnerTest.class
})
public class AllTests
//  public static class Compatibility {
    public static Test suite() {
      return new JUnit4TestAdapter(AllTests.class);
    }
View Full Code Here


      public void printErrors(TestResult result) {
        getWriter().println("Errors here");
      }
    };
    runner.setPrinter(printer);
    runner.doRun(new JUnit4TestAdapter(ATest.class));
    assertEquals(expected, output.toString());
  }
View Full Code Here

  private IMoney fMB1;
  private IMoney fMB2;

  public static junit.framework.Test suite() {
     return new JUnit4TestAdapter(MoneyTest.class);
  }
View Full Code Here

@RunWith( Suite.class )
public class JUnit4SuiteTest
{
    public static Test suite()
    {
        return new JUnit4TestAdapter( JUnit4SuiteTest.class );
    }
View Full Code Here

      int n= ts.testCount();
      for (int i= 0; i < n; i++)
        description.addChild(makeDescription(ts.testAt(i)));
      return description;
    } else if (test instanceof JUnit4TestAdapter) {
      JUnit4TestAdapter adapter= (JUnit4TestAdapter) test;
      return adapter.getDescription();
    } else if (test instanceof TestDecorator) {
      TestDecorator decorator= (TestDecorator) test;
      return makeDescription(decorator.getTest());
    } else {
      // This is the best we can do in this case
View Full Code Here

       
        // No warnings (e.g. bad lexical forms).
        ErrorHandlerFactory.setTestLogging(false) ;
       
        // ARQ dependencies
        ts.addTest(new JUnit4TestAdapter(TC_Atlas.class)) ;
        ts.addTest(new JUnit4TestAdapter(TC_Riot.class)) ;
       
        // Fiddle around with the config if necessary
        if ( false )
        {
            QueryEngineMain.unregister() ;
            QueryEngineRef.register() ;
        }

        // Tests should be silent.
        NodeValue.VerboseWarnings = false ;
        E_Function.WarnOnUnknownFunction = false ;
       
        // Lower level
        ts.addTest(TS_General.suite() );
        ts.addTest(TS_Expr.suite()) ;
        ts.addTest(TS_Util.suite()) ;
        ts.addTest(new JUnit4TestAdapter(TS_Lang.class)) ;
        ts.addTest(new JUnit4TestAdapter(TS_ResultSet.class)) ;

        // Binding I/O
        ts.addTest(TestBindingStreams.suite()) ;

       
        // Algebra
        ts.addTest(new JUnit4TestAdapter(TC_Algebra.class)) ;

        // Syntax
        ts.addTest(TS_Syntax.suite()) ;
        // Serialization
        ts.addTest(TS_Serialization.suite()) ;
       
        // Scripted tests for SPARQL
        ts.addTest(ScriptTestSuiteFactory.make(testDirARQ+"/manifest-arq.ttl")) ;
     
        // Scripted tests for ARQ features outside SPARQL syntax
        // Currently at end of manifest-arq.ttl
//        ts.addTest(QueryTestSuiteFactory.make(testDirARQ+"/manifest-ext.ttl")) ;
       
        // The DAWG official tests (some may be duplicated in ARQ test suite
        // but this should be the untouched versions)
        ts.addTest(TS_DAWG.suite()) ;
     
        // API
        ts.addTest(new JUnit4TestAdapter(TS_API.class)) ;
       
        // SPARQL/Update
        ts.addTest(TS_Update.suite()) ;
       
        ts.addTest(TS_SSE.suite()) ;

        ts.addTest(new JUnit4TestAdapter(TS_Graph.class)) ;
        ts.addTest(new JUnit4TestAdapter(TS_Lang.class)) ;
        ts.addTest(new JUnit4TestAdapter(TS_Solver.class)) ;
        ts.addTest(new JUnit4TestAdapter(TS_Engine.class)) ;
       
        return ts ;
    }
View Full Code Here

public class TestDatasetGraphMemTriplesQuads extends DatasetGraphTests
{
    public static junit.framework.Test suite()
    {
        return new JUnit4TestAdapter(TestDatasetGraphMemTriplesQuads.class) ;
    }
View Full Code Here

})

public class TS_Expr
{
      public static junit.framework.Test suite() {
        return new JUnit4TestAdapter(TS_Expr.class);
      }
View Full Code Here

public class TestXSDFuncOp extends TestCase
{
    public static junit.framework.Test suite()
    {
        return new JUnit4TestAdapter(TestXSDFuncOp.class) ;
    }
View Full Code Here

public class TestPath
{
    public static junit.framework.Test suite()
    {
        return new JUnit4TestAdapter(TestPath.class) ;
//        TestSuite ts = new TestSuite(TestPath.class) ;
//        ts.setName(Utils.classShortName(TestPath.class)) ;
//        return ts ;
    }
View Full Code Here

TOP

Related Classes of junit.framework.JUnit4TestAdapter

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.