Package com.foundationdb.junit.NamedParameterizedRunner

Examples of com.foundationdb.junit.NamedParameterizedRunner.ReifiedParamRunner


        Map<String,ReifiedParamRunner> map = testParameterizations(runner,
                "Parameterization[PASSING one: [1] ]",
                "Parameterization[PASSING two: [2] ]");

        {
            ReifiedParamRunner forOne = map.get("Parameterization[PASSING one: [1] ]");
            assertEquals("param one: " + forOne.describeChildren(), 3, forOne.getChildrenCount());
            testFrameworkMethod(forOne, OnlyIfTest.class, "testIs1Method", true);
            testFrameworkMethod(forOne, OnlyIfTest.class, "testIs1Field", true);
            testFrameworkMethod(forOne, OnlyIfTest.class, "alwaysRun", true);
        }
        {
            ReifiedParamRunner forTwo = map.get("Parameterization[PASSING two: [2] ]");
            assertEquals("param two: " + forTwo.describeChildren(), 1, forTwo.getChildrenCount());
            testFrameworkMethod(forTwo, OnlyIfTest.class, "alwaysRun", true);
        }
    }
View Full Code Here


        }

        Map<String,ReifiedParamRunner> foundRunners = new HashMap<>();
        for (Runner child : children)
        {
            ReifiedParamRunner reified = (ReifiedParamRunner)child;
            String paramToString = reified.paramToString();
            assertNull("duplicate name: " + paramToString, foundRunners.put(paramToString, reified));
        }

        for (String expected : expectedNames)
        {
View Full Code Here

TOP

Related Classes of com.foundationdb.junit.NamedParameterizedRunner.ReifiedParamRunner

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.