@@ -32,7 +32,9 @@ class ScannerFactory { | |||
} | |||
EmbeddedScanner create(Properties props) { | |||
return EmbeddedScanner.create(new DefaultLogOutput()).addGlobalProperties(props); | |||
return EmbeddedScanner.create(new DefaultLogOutput()) | |||
.addGlobalProperties(props) | |||
.setApp("ScannerCli", ScannerVersion.version()); | |||
} | |||
class DefaultLogOutput implements LogOutput { |
@@ -49,6 +49,8 @@ public class ScannerFactoryTest { | |||
assertThat(runner).isInstanceOf(EmbeddedScanner.class); | |||
assertThat(runner.globalProperties().get("foo")).isEqualTo("bar"); | |||
assertThat(runner.app()).isEqualTo("ScannerCli"); | |||
assertThat(runner.appVersion()).isNotNull(); | |||
} | |||
@Test |