@Test(dataProvider = "methods") public void testInvokeRemote2(@NoInjection Method param1, Object[] param2) { Assert.assertEquals(param1.getName(), "toString"); Assert.assertEquals(param2.length, 0); }
@Test(dataProvider = "provider") public void withoutInjection(@NoInjection Method m) { Assert.assertEquals(m.getName(), "f"); }
@Test(dataProvider = "methods2") public void testInvokeRemoteReversed2(Object[] param1, @NoInjection Method param2) { Assert.assertEquals(param1.length, 0); Assert.assertEquals(param2.getName(), "toString"); }
@Test(dataProvider = "matchArrayEndingDP") public void matchArrayEndingTest(final Object[][] expected, @NoInjection final Method method) { if (expected != null) { final Parameter[] methodParameters = ReflectionRecipes.getMethodParameters(method); Assert.assertNotNull(methodParameters); final Parameter[] filteredParameters = ReflectionRecipes.filter(methodParameters, InjectableParameter.Assistant.ALL_INJECTS); Assert.assertNotNull(filteredParameters); for (final Object[] expect : expected) { Assert.assertNotNull(expect); Assert.assertEquals(expect.length, 2); Assert.assertNotNull(expect[0]); Assert.assertTrue(expect[0] instanceof Object[]); Assert.assertNotNull(expect[1]); Assert.assertTrue(expect[1] instanceof Boolean); Assert.assertEquals( ReflectionRecipes.matchArrayEnding(filteredParameters, (Object[]) expect[0]), expect[1] ); } } }
public void potpourri1( @NoInjection final Method myMethod1, @NoInjection final XmlTest myXmlTest, final Method currentTestMethod, final int i, final Method myMethod2, final ITestContext iTestContext, @NoInjection final ITestContext myTestContext, final Boolean b, @NoInjection final ITestResult myTestResult, final ITestResult iTestResult, final String[] s1,
@Test(dataProvider = "exactMatchDP") public void exactMatchTest(final Object[][] expected, @NoInjection final Method method) { if (expected != null) { final Parameter[] methodParameters = ReflectionRecipes.getMethodParameters(method); Assert.assertNotNull(methodParameters); final Parameter[] filteredParameters = ReflectionRecipes.filter(methodParameters, InjectableParameter.Assistant.ALL_INJECTS); Assert.assertNotNull(filteredParameters); for (final Object[] expect : expected) { Assert.assertNotNull(expect); Assert.assertEquals(expect.length, 2); Assert.assertNotNull(expect[0]); Assert.assertTrue(expect[0] instanceof Object[]); Assert.assertNotNull(expect[1]); Assert.assertTrue(expect[1] instanceof Boolean); Assert.assertEquals( ReflectionRecipes.exactMatch(filteredParameters, (Object[]) expect[0]), expect[1] ); } } }
public void potpourri0( @NoInjection final Method myMethod1, @NoInjection final XmlTest myXmlTest, final Method currentTestMethod, final int i, final Method myMethod2, final ITestContext iTestContext, @NoInjection final ITestContext myTestContext, final Boolean b, @NoInjection final ITestResult myTestResult, final ITestResult iTestResult, final String[] s1,
@Test(dataProvider = "Tests") public void testDependenceData(@NoInjection final Method method, final Class clazz) throws IllegalAccessException, InstantiationException, InvocationTargetException { Assert.assertTrue(HtsjdkTest.class.isAssignableFrom(clazz), "Test Classes must extend HtsJdkTest: " + clazz.getName()); }
@Test(dataProvider = "DataprovidersThatDontTestThemselves") public void testDataProviderswithDP(@NoInjection final Method method, final Class clazz) throws IllegalAccessException, InstantiationException {
@Test(dataProvider = "DataprovidersThatDontTestThemselves") public void testDataProviderswithDP(@NoInjection final Method method, final Class clazz) throws IllegalAccessException, InstantiationException {