test_class.declarator: cleaner
test_class.original_string: Cleaner cleaner;
test_class.type: Cleaner
test_class.var_name: cleaner
test_class.declarator: writer
test_class.original_string: Register writer;
test_class.type: Register
test_class.var_name: writer
test_class.declarator: entry
test_class.original_string: RegisterEntry entry;
test_class.type: RegisterEntry
test_class.var_name: entry
test_class.declarator: finder
test_class.original_string: Finder finder;
test_class.type: Finder
test_class.var_name: finder
test_class.declarator: registerConfig
test_class.original_string: RegisterConfig registerConfig;
test_class.type: RegisterConfig
test_class.var_name: registerConfig
test_class.file: micro-application-register/src/test/java/com/oath/micro/server/application/registry/CleanerTest.java
test_class.identifier: CleanerTest
test_case.body: @Test
      public void testClean() {
          writer.register(entry.withTime(new Date(System.currentTimeMillis() - 2000)));
          cleaner.clean();
          List<RegisterEntry> list = finder.find(Optional.empty());
          assertThat(list.size(), equalTo(0));
      }
test_case.class_method_signature: CleanerTest.testClean()
test_case.full_signature: @Test public void testClean()
test_case.identifier: testClean
test_case.invocations: register withTime currentTimeMillis clean find empty assertThat size equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testClean()
focal_class.declarator: config
focal_class.modifier: private final
focal_class.original_string: private final RegisterConfig config;
focal_class.type: RegisterConfig
focal_class.var_name: config
focal_class.declarator: maxLive
focal_class.modifier: private final
focal_class.original_string: private final int maxLive;
focal_class.type: int
focal_class.var_name: maxLive
focal_class.file: micro-application-register/src/main/java/com/oath/micro/server/application/registry/Cleaner.java
focal_class.identifier: Cleaner
focal_class.class_method_signature: Cleaner.Cleaner(RegisterConfig config,
          @Value("${service.registry.entry.max.live:43200000}") int maxLive)
focal_class.full_signature: @Autowired public  Cleaner(RegisterConfig config,
          @Value("${service.registry.entry.max.live:43200000}") int maxLive)
focal_class.identifier: Cleaner
focal_class.modifiers: @Autowired public
focal_class.parameters: (RegisterConfig config,
          @Value("${service.registry.entry.max.live:43200000}") int maxLive)
focal_class.signature:  Cleaner(RegisterConfig config,
          @Value("${service.registry.entry.max.live:43200000}") int maxLive)
focal_class.class_method_signature: Cleaner.deleteOldFilesAfterEachStartup()
focal_class.full_signature: @PostConstruct public void deleteOldFilesAfterEachStartup()
focal_class.identifier: deleteOldFilesAfterEachStartup
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deleteOldFilesAfterEachStartup()
focal_class.class_method_signature: Cleaner.clean()
focal_class.full_signature: public void clean()
focal_class.identifier: clean
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clean()
focal_class.class_method_signature: Cleaner.cleanDir(File dir, boolean deleteWithoutCheck)
focal_class.full_signature: private void cleanDir(File dir, boolean deleteWithoutCheck)
focal_class.identifier: cleanDir
focal_class.modifiers: private
focal_class.parameters: (File dir, boolean deleteWithoutCheck)
focal_class.return: void
focal_class.signature: void cleanDir(File dir, boolean deleteWithoutCheck)
focal_class.class_method_signature: Cleaner.checkFile(File f)
focal_class.full_signature: private void checkFile(File f)
focal_class.identifier: checkFile
focal_class.modifiers: private
focal_class.parameters: (File f)
focal_class.return: void
focal_class.signature: void checkFile(File f)
focal_method.body: public void clean() {
          cleanDir(new File(config.getOutputDir()), false);
      }
focal_method.class_method_signature: Cleaner.clean()
focal_method.full_signature: public void clean()
focal_method.identifier: clean
focal_method.invocations: cleanDir getOutputDir
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void clean()