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/FinderTest.java
test_class.identifier: FinderTest
test_case.body: @Test
      public void testFind() {
          writer.register(entry);
          List<RegisterEntry> list = finder.find(Optional.empty());
          assertThat(list.size(), greaterThan(0));
          assertThat(list.get(0).getContext(), equalTo("context"));
      }
test_case.class_method_signature: FinderTest.testFind()
test_case.full_signature: @Test public void testFind()
test_case.identifier: testFind
test_case.invocations: register find empty assertThat size greaterThan assertThat getContext get equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFind()
focal_class.declarator: logger = LoggerFactory.getLogger(getClass())
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: logger
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.file: micro-application-register/src/main/java/com/oath/micro/server/application/registry/Finder.java
focal_class.identifier: Finder
focal_class.class_method_signature: Finder.Finder(RegisterConfig config)
focal_class.full_signature: @Autowired public  Finder(RegisterConfig config)
focal_class.identifier: Finder
focal_class.modifiers: @Autowired public
focal_class.parameters: (RegisterConfig config)
focal_class.signature:  Finder(RegisterConfig config)
focal_class.class_method_signature: Finder.find(final Optional<RegisterEntry> re)
focal_class.full_signature: public List<RegisterEntry> find(final Optional<RegisterEntry> re)
focal_class.identifier: find
focal_class.modifiers: public
focal_class.parameters: (final Optional<RegisterEntry> re)
focal_class.return: List<RegisterEntry>
focal_class.signature: List<RegisterEntry> find(final Optional<RegisterEntry> re)
focal_class.class_method_signature: Finder.findDir(File dir)
focal_class.full_signature: private List<RegisterEntry> findDir(File dir)
focal_class.identifier: findDir
focal_class.modifiers: private
focal_class.parameters: (File dir)
focal_class.return: List<RegisterEntry>
focal_class.signature: List<RegisterEntry> findDir(File dir)
focal_method.body: public List<RegisterEntry> find(final Optional<RegisterEntry> re) {
          try {
              List<RegisterEntry> entries = findDir(new File(config.getOutputDir()));
              if (re.isPresent()) {
                  entries = entries.stream().filter(e -> e.matches(re.get()))
                                   .collect(Collectors.toList());
              }
              return entries;
          } catch (Exception e) {
              logger.error("Failed to find entries. Error: {}", e.getMessage(), e);
              return Collections.emptyList();
          }
      }
focal_method.class_method_signature: Finder.find(final Optional<RegisterEntry> re)
focal_method.full_signature: public List<RegisterEntry> find(final Optional<RegisterEntry> re)
focal_method.identifier: find
focal_method.invocations: findDir getOutputDir isPresent collect filter stream matches get toList error getMessage emptyList
focal_method.modifiers: public
focal_method.parameters: (final Optional<RegisterEntry> re)
focal_method.return: List<RegisterEntry>
focal_method.signature: List<RegisterEntry> find(final Optional<RegisterEntry> re)