Commit a81f9f4a by Andrew Seronick

adding example file from author

parent 11635956
package com.iteratrlearning.examples.synchronous.integration_tests;
import com.iteratrlearning.examples.synchronous.service.Service;
import org.junit.rules.ExternalResource;
public class ServiceResource extends ExternalResource
{
private final Service service;
public ServiceResource(final Service service)
{
this.service = service;
}
@Override
protected void before() throws Throwable
{
service.start();
}
@Override
protected void after()
{
try
{
service.stop();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment