Package org.netbeans.modules.gsf.testrunner.api

Examples of org.netbeans.modules.gsf.testrunner.api.Trouble


        @Override
        public void verifyTestCase(Testcase testcase) {
            super.verifyTestCase(testcase);

            Trouble trouble = testcase.getTrouble();
            assertNotNull(message("Trouble"), trouble);

            assertEquals(message("Trouble.isError"), error, trouble.isError());
            assertTrue(message("StackTrace[" + expectedStackTraceLine + "]"),
                    contains(trouble.getStackTrace(), expectedStackTraceLine));
        }
View Full Code Here


                        outputBuilder = null;
                    }
                    break;
                case 2:
                    if (failureContent != null && testcase != null) {
                        Trouble trouble = new Trouble(error);
                        trouble.setStackTrace(extractStackTrace(failureContent.toString()));
                        testcase.setTrouble(trouble);
                    }
                    failureContent = null;
                    break;
            }
View Full Code Here

        String methodName = specificTestcase.getTestMethodName();
        return className + '.' + methodName;
    }

    private String[] tryGetStackTrace() {
        Trouble trouble = testcase.getTrouble();
        if (trouble == null) {
            return null;
        }

        return trouble.getStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.gsf.testrunner.api.Trouble

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.