test_class.declarator: releaseRepository
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ReleaseRepository releaseRepository;
test_class.type: ReleaseRepository
test_class.var_name: releaseRepository
test_class.file: persistence-mongodb/src/test/java/org/devgateway/ocds/persistence/mongo/spring/json/ReleaseJsonImportTest.java
test_class.identifier: ReleaseJsonImportTest
test_class.superclass: extends AbstractMongoTest
test_case.body: @Test
      public void importObject() throws Exception {
          final String jsonRelease = "{\n"
                  + "    tag: [\"tender\"],\n"
                  + "    planning: {\n"
                  + "        budget: {\n"
                  + "            description: \"budget desc...\",\n"
                  + "            amount: {\n"
                  + "                amount: 10000.0,\n"
                  + "                currency: \"USD\"\n"
                  + "            }\n"
                  + "        }\n"
                  + "    }\n"
                  + "}";
          final JsonImport releaseJsonImport = new ReleaseJsonImport(releaseRepository, jsonRelease);
          final Release release = (Release) releaseJsonImport.importObject();
          final Release releaseById = releaseRepository.findById(release.getId()).get();
  
          Assert.assertNotNull("Check if we have something in the database", releaseById);
          Assert.assertEquals("Check if the releases are the same", release, releaseById);
      }
test_case.class_method_signature: ReleaseJsonImportTest.importObject()
test_case.full_signature: @Test public void importObject()
test_case.identifier: importObject
test_case.invocations: importObject get findById getId assertNotNull assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void importObject()
focal_class.declarator: logger = LoggerFactory.getLogger(ReleaseJsonImport.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = LoggerFactory.getLogger(ReleaseJsonImport.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: releaseRepository
focal_class.modifier: private final
focal_class.original_string: private final ReleaseRepository releaseRepository;
focal_class.type: ReleaseRepository
focal_class.var_name: releaseRepository
focal_class.declarator: releaseJsonToObject
focal_class.modifier: private final
focal_class.original_string: private final JsonToObject releaseJsonToObject;
focal_class.type: JsonToObject
focal_class.var_name: releaseJsonToObject
focal_class.file: persistence-mongodb/src/main/java/org/devgateway/ocds/persistence/mongo/spring/json/ReleaseJsonImport.java
focal_class.identifier: ReleaseJsonImport
focal_class.interfaces: implements JsonImport<Release>
focal_class.class_method_signature: ReleaseJsonImport.ReleaseJsonImport(final ReleaseRepository releaseRepository, final String releaseJsonToObject)
focal_class.full_signature: public  ReleaseJsonImport(final ReleaseRepository releaseRepository, final String releaseJsonToObject)
focal_class.identifier: ReleaseJsonImport
focal_class.modifiers: public
focal_class.parameters: (final ReleaseRepository releaseRepository, final String releaseJsonToObject)
focal_class.signature:  ReleaseJsonImport(final ReleaseRepository releaseRepository, final String releaseJsonToObject)
focal_class.class_method_signature: ReleaseJsonImport.ReleaseJsonImport(final ReleaseRepository releaseRepository, final File file)
focal_class.full_signature: public  ReleaseJsonImport(final ReleaseRepository releaseRepository, final File file)
focal_class.identifier: ReleaseJsonImport
focal_class.modifiers: public
focal_class.parameters: (final ReleaseRepository releaseRepository, final File file)
focal_class.signature:  ReleaseJsonImport(final ReleaseRepository releaseRepository, final File file)
focal_class.class_method_signature: ReleaseJsonImport.importObject()
focal_class.full_signature: @Override public Release importObject()
focal_class.identifier: importObject
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Release
focal_class.signature: Release importObject()
focal_class.class_method_signature: ReleaseJsonImport.logMessage(final String message)
focal_class.full_signature: @Override public void logMessage(final String message)
focal_class.identifier: logMessage
focal_class.modifiers: @Override public
focal_class.parameters: (final String message)
focal_class.return: void
focal_class.signature: void logMessage(final String message)
focal_method.body: @Override
      public Release importObject() throws IOException {
          Release release = (Release) releaseJsonToObject.toObject();
          release = releaseRepository.save(release);
  
          return release;
      }
focal_method.class_method_signature: ReleaseJsonImport.importObject()
focal_method.full_signature: @Override public Release importObject()
focal_method.identifier: importObject
focal_method.invocations: toObject save
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Release
focal_method.signature: Release importObject()