public static TestExecution validate ( final TestCaseExecutionType testCaseExecutionType , final TestSource testSource , final TestSuite testSuite , final String agentID , DatasetOverviewResults overviewResults ) { checkNotNull ( testCaseExecutionType , "Test Execution Type must not be null" ) ; checkNotNull ( testSource , "Test Source must not be null" ) ; checkNotNull ( testSuite , "Test Suite must not be null" ) ; checkNotNull ( agentID , "Agent must not be null" ) ; checkNotNull ( overviewResults , "Overview Results must not be null" ) ; final boolean enableRDFUnitLogging = false ; final SimpleTestExecutorMonitor testExecutorMonitor = new SimpleTestExecutorMonitor ( enableRDFUnitLogging ) ; testExecutorMonitor . setUserID ( agentID ) ; testExecutorMonitor . setExecutionType ( testCaseExecutionType ) ; final TestExecutor testExecutor = TestExecutorFactory . createTestExecutor ( testCaseExecutionType ) ; testExecutor . addTestExecutorMonitor ( testExecutorMonitor ) ; testExecutor . execute ( testSource , testSuite ) ; overviewResults . set ( testExecutorMonitor . getOverviewResults ( ) ) ; return testExecutorMonitor . getTestExecution ( ) ; }
Static method that validates a Source . In this case the Source and TestSuite are provided as argument along with a RDFUnitConfiguration object This function can also serve as standalone