Package junit.framework

Examples of junit.framework.JUnit4TestAdapter


    public final static int NO_FAILURE    = 100 ;
    public final static int PARSE_FAIL    = 250 ;   // Parser should catch it.
    public final static int EVAL_FAIL     = 200 ;   // Parser should pass it but eval should fail it
   
    public static junit.framework.Test suite() {
        return new JUnit4TestAdapter(TestExpressions.class);
      }
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)) ;
       
        // Syntax
        ts.addTest(TS_Syntax.suite()) ;
        // Serialization
        ts.addTest(TS_Serialization.suite()) ;

        // Binding I/O
        ts.addTest(TestBindingStreams.suite()) ;
       
        // Algebra
        ts.addTest(new JUnit4TestAdapter(TC_Algebra.class)) ;

        // Property paths
        ts.addTest(new JUnit4TestAdapter(TS_Path.class)) ;
       
        // 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_Solver.class)) ;
        ts.addTest(new JUnit4TestAdapter(TS_Engine.class)) ;

        // API
        ts.addTest(new JUnit4TestAdapter(TS_ParamString.class)) ;
       
        return ts ;
    }
View Full Code Here

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

      suiteMethod = testClass.getMethod(SUITE_METHODNAME, new Class[0]);
    } catch (Exception e) {
      // try to extract a test suite automatically
      clearStatus();
      // perhaps the test is annotated with @RunWith and @SuiteClasses
      return new JUnit4TestAdapter(testClass);
    }
   
    if (!Modifier.isStatic(suiteMethod.getModifiers())) {
      runFailed("suite() method must be static"); //$NON-NLS-1$
      return null;
View Full Code Here

        // add TestSuites
        for (Class<? extends TestSuite> suiteClass : suites) {
            if (!matchCategory(wantedCategories, categories.get(suiteClass))) continue;

            suite.addTest(new JUnit4TestAdapter(suiteClass));
            log.debug("added TestSuite " + suiteClass.getName());
        }

        return suite;
    }
View Full Code Here

   
    private static ConfigTree[] actions;
 
    public static junit.framework.Test suite()
    {
        return new JUnit4TestAdapter(ContentBasedWiretapUnitTest.class);
    }
View Full Code Here

    assertEquals(4, TestChannel.count);
    }
   
    public static junit.framework.Test suite()
    {
        return new JUnit4TestAdapter(RuleServiceCallHelperUnitTest.class);
    }
View Full Code Here

    message.getAttachment().addItem(new String("TEST ATTACHMENT2"));
    return message;
  }

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

      assertEquals("org.jboss.internal.soa.esb.rules", kpkg.getName());
  }
 
  public static junit.framework.Test suite()
  {
    return new JUnit4TestAdapter( DroolsRuleBaseHelperUnitTest.class );
  }
View Full Code Here

        namespaces.put( "ord", "http://org.jboss.soa.esb/order" );
        namespaces.put( "p", "http://org.jboss.soa.esb/product" );
    }
   
    public static junit.framework.Test suite() {
        return new JUnit4TestAdapter(DslHelperUnitTest.class);
    }
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.