use of com.dexels.navajo.resource.http.impl.ResourceComponent in project navajo by Dexels.
the class TestHttpResource method setUp.
@Before
public void setUp() throws Exception {
this.access = new Access();
access.setTenant("MYTENANT");
factory = new HttpResourceFactory();
component = new ResourceComponent();
RepositoryInstance instance = createStubInstance("test");
component.setRepositoryInstance(instance);
Map<String, Object> settings = new HashMap<String, Object>();
String url = TestConfig.HTTP_TEST_URL.getValue();
Assert.assertNotNull(url);
settings.put("url", url);
settings.put("name", "binstore");
settings.put("authorization", TestConfig.HTTP_TEST_TOKEN.getValue());
settings.put("secret", TestConfig.HTTP_TEST_SECRET.getValue());
settings.put("expire", "120");
component.activate(settings);
factory.addHttpResource(component, settings);
factory.activate();
}
Aggregations