ProxyEffector extends AddEffectorInitializerAbstract { public EffectorBuilder<Object> newEffectorBuilder() { EffectorBuilder<Object> eff = newAbstractEffectorBuilder(Object.class); eff.impl(new Body(eff.buildAbstract(), initParams())); return eff; } private  ProxyEffector();  ProxyEffector(ConfigBag params);  ProxyEffector(Map<?, ?> params); EffectorBuilder<Object> newEffectorBuilder(); static final ConfigKey<Entity> TARGET_ENTITY; static final ConfigKey<String> TARGET_EFFECTOR_NAME; }
@Test(expectedExceptions = NullPointerException.class) public void testThrowsIfEntityUnset() { new ProxyEffector(MutableMap.of( AddEffector.EFFECTOR_NAME, "proxy-effector", ProxyEffector.TARGET_ENTITY, null, ProxyEffector.TARGET_EFFECTOR_NAME, "kajnfksjdnfkjsdnf")) .newEffectorBuilder(); }
@Test(expectedExceptions = NullPointerException.class) public void testThrowsIfTargetEffectorNameUnset() { new ProxyEffector(MutableMap.of( AddEffector.EFFECTOR_NAME, "proxy-effector", ProxyEffector.TARGET_ENTITY, app, ProxyEffector.TARGET_EFFECTOR_NAME, null)) .newEffectorBuilder(); }