Exemplo n.º 1
0
 def __get_detector(self):
     try:
         java_options = ['-' + option for option in self.config.java_options]
         return find_detector(self.DETECTORS_PATH, self.config.detector, java_options)
     except ValueError as e:
         logger.critical(e)
         exit()
Exemplo n.º 2
0
    def test_finds_detector(self):
        detector = find_detector(_DETECTORS_PATH, "Dummy", ["-java-options-"])

        assert_is_instance(detector, Dummy)