3435363738394041424344
return userRepository; } @Override protected TestContainerFactory getTestContainerFactory() { return new TestContainerFactory () { @SuppressWarnings("unchecked") public Class<LowLevelAppDescriptor> supports() { return LowLevelAppDescriptor.class; }
43444546474849505152535455
// :~) /** * Start container */ TestContainerFactory containerFactory = new GrizzlyTestContainerFactory(); UriBuilder uriBuilder = UriBuilder.fromUri(URI.create("http://localhost:" + port)); testContainer = containerFactory.create( uriBuilder.build(), builder.build() ); testContainer.start(); // :~)
64656667686970717273
/** * Starts the fake service. */ @BeforeClass public void start() { TestContainerFactory containerFactory = new GrizzlyTestContainerFactory(); UriBuilder uriBuilder = UriBuilder.fromUri(getUri()); testContainer = containerFactory.create(uriBuilder.build(), getBuilder().build()); testContainer.start(); }