test_class.file: org.eclipse.winery.repository/src/test/java/org/eclipse/winery/repository/backend/filebased/XMLRepositoryTest.java
test_class.identifier: XMLRepositoryTest
test_class.superclass: extends TestWithGitBackedRepository
test_case.body: @Test
      public void duplicateDefinition() throws Exception {
          this.setRevisionTo("origin/plain");
          DefinitionsChildId old = new NodeTypeId("http://plain.winery.opentosca.org/nodetypes", "NodeTypeWithTwoKVProperties", false);
          DefinitionsChildId newId = new NodeTypeId("http://plain.winery.opentosca.org/nodetypes", "NodeTypeWithTwoKVPropertiesDuplicate", false);
  
          this.repository.duplicate(old, newId);
  
          assertTrue(this.repository.exists(old));
          assertTrue(this.repository.exists(newId));
      }
test_case.class_method_signature: XMLRepositoryTest.duplicateDefinition()
test_case.full_signature: @Test public void duplicateDefinition()
test_case.identifier: duplicateDefinition
test_case.invocations: setRevisionTo duplicate assertTrue exists assertTrue exists
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void duplicateDefinition()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(XMLRepository.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(XMLRepository.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: org.eclipse.winery.repository/src/main/java/org/eclipse/winery/repository/backend/filebased/XMLRepository.java
focal_class.identifier: XMLRepository
focal_class.class_method_signature: XMLRepository.XMLRepository(Path repositoryRoot)
focal_class.full_signature: public  XMLRepository(Path repositoryRoot)
focal_class.identifier: XMLRepository
focal_class.modifiers: public
focal_class.parameters: (Path repositoryRoot)
focal_class.signature:  XMLRepository(Path repositoryRoot)
focal_class.class_method_signature: XMLRepository.definitionsFromRef(RepositoryFileReference ref)
focal_class.full_signature: @Override public Definitions definitionsFromRef(RepositoryFileReference ref)
focal_class.identifier: definitionsFromRef
focal_class.modifiers: @Override public
focal_class.parameters: (RepositoryFileReference ref)
focal_class.return: Definitions
focal_class.signature: Definitions definitionsFromRef(RepositoryFileReference ref)
focal_class.class_method_signature: XMLRepository.exists(GenericId id)
focal_class.full_signature: @Override public boolean exists(GenericId id)
focal_class.identifier: exists
focal_class.modifiers: @Override public
focal_class.parameters: (GenericId id)
focal_class.return: boolean
focal_class.signature: boolean exists(GenericId id)
focal_class.class_method_signature: XMLRepository.putContentToFile(RepositoryFileReference ref, InputStream inputStream, MediaType mediaType)
focal_class.full_signature: @Override public void putContentToFile(RepositoryFileReference ref, InputStream inputStream, MediaType mediaType)
focal_class.identifier: putContentToFile
focal_class.modifiers: @Override public
focal_class.parameters: (RepositoryFileReference ref, InputStream inputStream, MediaType mediaType)
focal_class.return: void
focal_class.signature: void putContentToFile(RepositoryFileReference ref, InputStream inputStream, MediaType mediaType)
focal_class.class_method_signature: XMLRepository.exists(RepositoryFileReference ref)
focal_class.full_signature: @Override public boolean exists(RepositoryFileReference ref)
focal_class.identifier: exists
focal_class.modifiers: @Override public
focal_class.parameters: (RepositoryFileReference ref)
focal_class.return: boolean
focal_class.signature: boolean exists(RepositoryFileReference ref)
focal_class.class_method_signature: XMLRepository.getDefinitionsChildIds(Class<T> idClass, boolean omitDevelopmentVersions)
focal_class.full_signature: public SortedSet<T> getDefinitionsChildIds(Class<T> idClass, boolean omitDevelopmentVersions)
focal_class.identifier: getDefinitionsChildIds
focal_class.modifiers: public
focal_class.parameters: (Class<T> idClass, boolean omitDevelopmentVersions)
focal_class.return: SortedSet<T>
focal_class.signature: SortedSet<T> getDefinitionsChildIds(Class<T> idClass, boolean omitDevelopmentVersions)
focal_class.superclass: extends AbstractFileBasedRepository
focal_method.body: @Override
      public boolean exists(GenericId id) {
          Path absolutePath = this.id2AbsolutePath(id);
          return Files.exists(absolutePath);
      }
focal_method.class_method_signature: XMLRepository.exists(GenericId id)
focal_method.full_signature: @Override public boolean exists(GenericId id)
focal_method.identifier: exists
focal_method.invocations: id2AbsolutePath exists
focal_method.modifiers: @Override public
focal_method.parameters: (GenericId id)
focal_method.return: boolean
focal_method.signature: boolean exists(GenericId id)