@Test public void testGetExtensions() throws Exception { Plugin.Context context = new Plugin.Context(Version.create(5, 6)); new LuaPlugin().define(context); assertThat(context.getExtensions()).isNotEmpty(); }
@Override public void define(Context context) { context.addExtensions( Lua.class, LuaSquidSensor.class, CoberturaSensor.class, LuaRulesDefinition.class, LuaProfile.class, PropertyDefinition.builder(FILE_SUFFIXES_KEY) .defaultValue(Lua.DEFAULT_FILE_SUFFIXES) .name("File suffixes") .description("Comma-separated list of suffixes for files to analyze. To not filter, leave the list empty.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build(), PropertyDefinition.builder(COBERTURA_REPORT_PATH) .name("Cobertura xml report path") .description("Path to the Cobertura coverage report file. The path may be either absolute or relative to the project base directory.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build() ); }
LuaPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Lua.class, LuaSquidSensor.class, CoberturaSensor.class, LuaRulesDefinition.class, LuaProfile.class, PropertyDefinition.builder(FILE_SUFFIXES_KEY) .defaultValue(Lua.DEFAULT_FILE_SUFFIXES) .name("File suffixes") .description("Comma-separated list of suffixes for files to analyze. To not filter, leave the list empty.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build(), PropertyDefinition.builder(COBERTURA_REPORT_PATH) .name("Cobertura xml report path") .description("Path to the Cobertura coverage report file. The path may be either absolute or relative to the project base directory.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build() ); } }
LuaPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Lua.class, LuaSquidSensor.class, CoberturaSensor.class, LuaRulesDefinition.class, LuaProfile.class, PropertyDefinition.builder(FILE_SUFFIXES_KEY) .defaultValue(Lua.DEFAULT_FILE_SUFFIXES) .name("File suffixes") .description("Comma-separated list of suffixes for files to analyze. To not filter, leave the list empty.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build(), PropertyDefinition.builder(COBERTURA_REPORT_PATH) .name("Cobertura xml report path") .description("Path to the Cobertura coverage report file. The path may be either absolute or relative to the project base directory.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build() ); }  }
LuaPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Lua.class, LuaSquidSensor.class, CoberturaSensor.class, LuaRulesDefinition.class, LuaProfile.class, PropertyDefinition.builder(FILE_SUFFIXES_KEY) .defaultValue(Lua.DEFAULT_FILE_SUFFIXES) .name("File suffixes") .description("Comma-separated list of suffixes for files to analyze. To not filter, leave the list empty.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build(), PropertyDefinition.builder(COBERTURA_REPORT_PATH) .name("Cobertura xml report path") .description("Path to the Cobertura coverage report file. The path may be either absolute or relative to the project base directory.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build() ); }  @Override void define(Context context); }
LuaPlugin implements Plugin { @Override public void define(Context context) { context.addExtensions( Lua.class, LuaSquidSensor.class, CoberturaSensor.class, LuaRulesDefinition.class, LuaProfile.class, PropertyDefinition.builder(FILE_SUFFIXES_KEY) .defaultValue(Lua.DEFAULT_FILE_SUFFIXES) .name("File suffixes") .description("Comma-separated list of suffixes for files to analyze. To not filter, leave the list empty.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build(), PropertyDefinition.builder(COBERTURA_REPORT_PATH) .name("Cobertura xml report path") .description("Path to the Cobertura coverage report file. The path may be either absolute or relative to the project base directory.") .onQualifiers(Qualifiers.MODULE, Qualifiers.PROJECT) .build() ); }  @Override void define(Context context); static final String FILE_SUFFIXES_KEY; static final String COBERTURA_REPORT_PATH; }