@Override protected Object createTest() throws Exception { PlatformTestCase testCase = (PlatformTestCase) super.createTest(); testCase.installPlatform( testPlatform ); return testCase; } };
@Override protected Object createTest() throws Exception { PlatformTestCase testCase = (PlatformTestCase) super.createTest(); testCase.installPlatform( testPlatform ); return testCase; } };
public static void makeSuites( TestPlatform testPlatform, Properties properties, Map<String, Pipe> pipes, TestSuite suite, Class type ) throws IllegalAccessException, InvocationTargetException, InstantiationException, IOException, ClassNotFoundException { for( String name : pipes.keySet() ) { if( isUNDEFINED( properties, name ) ) { LOG.debug( "skipping: {}", name ); continue; } // TestPlatform testPlatform = makeInstance( getPlatformClass( type.getClassLoader() ) ); // test platform dependencies not installed, so skip // if( testPlatform == null ) // continue; String platformName = testPlatform.getName(); String displayName = String.format( "%s[%s]", name, platformName ); PlatformTestCase platformTest = (PlatformTestCase) type.getConstructors()[ 0 ].newInstance( properties, displayName, name, pipes.get( name ) ); platformTest.installPlatform( testPlatform ); suite.addTest( platformTest ); } }
public static void makeSuites( TestPlatform testPlatform, Properties properties, Map<String, Pipe> pipes, TestSuite suite, Class type ) throws IllegalAccessException, InvocationTargetException, InstantiationException, IOException, ClassNotFoundException { for( String name : pipes.keySet() ) { if( isUNDEFINED( properties, name ) ) { LOG.debug( "skipping: {}", name ); continue; } // TestPlatform testPlatform = makeInstance( getPlatformClass( type.getClassLoader() ) ); // test platform dependencies not installed, so skip // if( testPlatform == null ) // continue; String platformName = testPlatform.getName(); String displayName = String.format( "%s[%s]", name, platformName ); PlatformTestCase platformTest = (PlatformTestCase) type.getConstructors()[ 0 ].newInstance( properties, displayName, name, pipes.get( name ) ); platformTest.installPlatform( testPlatform ); suite.addTest( platformTest ); } }