private static synchronized StdTesterService getInstance() { if (service == null) { service = new StdTesterService(); } return service; }
/** * Returns the {@link StdTester} available on the classpath */ public static StdTester getTester() { StdTesterService service = getInstance(); try { return service.stdTesterClass.newInstance(); } catch (IllegalAccessException | InstantiationException e) { throw (new RuntimeException(e)); } } }
/** * Returns a {@link StdTester} for the underlying test platform */ protected StdTester getTester() { StdTester tester = StdTesterService.getTester(); validateTopLevelStdUDFClassesAndImplementations(getTopLevelStdUDFClassesAndImplementations()); tester.setup(getTopLevelStdUDFClassesAndImplementations()); return tester; }
/** * Returns a {@link StdTester} for the underlying test platform */ protected StdTester getTester() { StdTester tester = StdTesterService.getTester(); validateTopLevelStdUDFClassesAndImplementations(getTopLevelStdUDFClassesAndImplementations()); tester.setup(getTopLevelStdUDFClassesAndImplementations()); return tester; }
private static synchronized StdTesterService getInstance() { if (service == null) { service = new StdTesterService(); } return service; }
/** * Returns the {@link StdTester} available on the classpath */ public static StdTester getTester() { StdTesterService service = getInstance(); try { return service.stdTesterClass.newInstance(); } catch (IllegalAccessException | InstantiationException e) { throw (new RuntimeException(e)); } } }