@MycilaPlugins(value = UNSHARED, descriptor = "")
public final class MycilaTestingTest {
@Test
public void test_share_plugins() throws Exception {
MycilaTesting mycilaTesting = MycilaTesting.from(new MycilaPlugins() {
public Cache value() {
return SHARED;
}
public String descriptor() {
return MycilaTesting.DEFAULT_PLUGIN_DESCRIPTOR;
}
public Class<? extends Annotation> annotationType() {
throw new AssertionError("should not go here");
}
});
assertEquals(mycilaTesting.pluginManager().getCache().getBindings().size(), 2);
assertTrue(mycilaTesting.pluginManager().getCache().contains("myplugin"));
assertEquals(mycilaTesting, MycilaTesting.from(new MycilaPlugins() {
public Cache value() {
return SHARED;
}
public String descriptor() {