Package org.tap4j.model

Examples of org.tap4j.model.TestSet


        }

        String tapText = contents.toString();

        TapConsumer consumer = TapConsumerFactory.makeTap13YamlConsumer();
        TestSet tests = consumer.load(tapText);

        for (int i = 0; i < tests.getNumberOfTestResults(); i++){
            TestResult test = tests.getTestResult(i + 1);
            System.out.print("Test " + test.getTestNumber() + " ");
            System.out.print(test.getDescription() + " ");
            System.out.println(test.getStatus());

            Map<String, Object> diagnostic = test.getDiagnostic();

            printMap(diagnostic, "  ");
        }

        /*
        Class c = TestResult.class;
        for (Method method : c.getDeclaredMethods()) {
          //if (method.getAnnotation(PostConstruct.class) != null) {
            System.out.println(method.getName());
          //}
        }
        */

       

        System.out.print(tests.getNumberOfTestResults() + " tests total. ");
        if (tests.containsNotOk()){
            System.out.println("Some tests failed :(");
        }else{
            System.out.println("ALL PASSED :D");
        }

View Full Code Here

TOP

Related Classes of org.tap4j.model.TestSet

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.