use of org.activityinfo.server.authentication.ServerSideAuthProvider in project activityinfo by bedatadriven.
the class HostControllerTest method setup.
@Before
public void setup() {
DeploymentConfiguration deploymentConfig = new DeploymentConfiguration(new Properties());
authProvider = new ServerSideAuthProvider();
authProvider.clear();
entityManager = createMock(EntityManager.class);
expect(entityManager.find(User.class, 3)).andReturn(new User()).anyTimes();
replay(entityManager);
resource = new HostController(authProvider, Providers.of(entityManager));
}
Aggregations