public EclipsePlatformTestContainer(ExamSystem system) throws ExamConfigurationException { this.system = system; application = system.getRequiredOption(EclipseApplicationOption.class); cleanCaches = system.getOption(CleanCachesOption.class); ignoreItems = system.getOption(IgnoreItems.class); }
@Override public TestContainer create(final ExamSystem system) { try { EclipseApplicationOption option = system .getRequiredOption(EclipseApplicationOption.class); if (option.getProduct().getLauncher().isForked()) { throw new UnsupportedOperationException("Sorry not supported yet :-("); // return new RemoteEclipsePlatformTestContainer(system); } else { return new EclipsePlatformTestContainer(system); } } catch (ExamConfigurationException e) { throw new TestContainerException(e); } } }