HttpCommandEffector extends AddEffectorInitializerAbstract { public EffectorBuilder<String> newEffectorBuilder() { EffectorBuilder<String> eff = newAbstractEffectorBuilder(String.class); eff.impl(new Body(eff.buildAbstract(), initParams())); return eff; } private  HttpCommandEffector();  HttpCommandEffector(ConfigBag params); EffectorBuilder<String> newEffectorBuilder(); static final ConfigKey<String> EFFECTOR_URI; static final ConfigKey<String> EFFECTOR_HTTP_VERB; static final ConfigKey<String> EFFECTOR_HTTP_USERNAME; static final ConfigKey<String> EFFECTOR_HTTP_PASSWORD; static final ConfigKey<Map<String, String>> EFFECTOR_HTTP_HEADERS; static final ConfigKey<Object> EFFECTOR_HTTP_PAYLOAD; static final ConfigKey<String> JSON_PATH; static final ConfigKey<Map<String, String>> JSON_PATHS_AND_SENSORS; @Deprecated
    static final ConfigKey<String> PUBLISH_SENSOR; static final String APPLICATION_JSON; static final String APPLICATION_X_WWW_FORM_URLENCODE; }
@Test(expectedExceptions = NullPointerException.class) public void testMissingURI() { new HttpCommandEffector(ConfigBag.newInstance() .configure(HttpCommandEffector.EFFECTOR_NAME, EFFECTOR_HTTP_COMMAND.getName()) .configure(HttpCommandEffector.EFFECTOR_HTTP_VERB, "GET") ).newEffectorBuilder(); }
@Test(expectedExceptions = NullPointerException.class) public void testMissingVerb() { new HttpCommandEffector(ConfigBag.newInstance() .configure(HttpCommandEffector.EFFECTOR_NAME, EFFECTOR_HTTP_COMMAND.getName()) .configure(HttpCommandEffector.EFFECTOR_URI, url("")) ).newEffectorBuilder(); }