test_class.file: wdtk-util/src/test/java/org/wikidata/wdtk/util/DirectoryManagerFactoryTest.java
test_class.identifier: DirectoryManagerFactoryTest
test_case.body: @Test
  	public void createDefaultDirectoryManagerPath() throws IOException {
  		Path path = Paths.get(System.getProperty("user.dir"));
  		DirectoryManager dm = DirectoryManagerFactory.createDirectoryManager(
  				path, true);
  		assertTrue(dm instanceof DirectoryManagerImpl);
  		DirectoryManagerImpl dmi = (DirectoryManagerImpl) dm;
  		assertTrue(dmi.readOnly);
  		assertEquals(path, dmi.directory);
  	}
test_case.class_method_signature: DirectoryManagerFactoryTest.createDefaultDirectoryManagerPath()
test_case.full_signature: @Test public void createDefaultDirectoryManagerPath()
test_case.identifier: createDefaultDirectoryManagerPath
test_case.invocations: get getProperty createDirectoryManager assertTrue assertTrue assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createDefaultDirectoryManagerPath()
focal_class.declarator: dmClass = DirectoryManagerImpl.class
focal_class.modifier: static
focal_class.original_string: static Class<? extends DirectoryManager> dmClass = DirectoryManagerImpl.class;
focal_class.type: Class<? extends DirectoryManager>
focal_class.var_name: dmClass
focal_class.file: wdtk-util/src/main/java/org/wikidata/wdtk/util/DirectoryManagerFactory.java
focal_class.identifier: DirectoryManagerFactory
focal_class.class_method_signature: DirectoryManagerFactory.setDirectoryManagerClass(
  			Class<? extends DirectoryManager> clazz)
focal_class.full_signature: public static void setDirectoryManagerClass(
  			Class<? extends DirectoryManager> clazz)
focal_class.identifier: setDirectoryManagerClass
focal_class.modifiers: public static
focal_class.parameters: (
  			Class<? extends DirectoryManager> clazz)
focal_class.return: void
focal_class.signature: void setDirectoryManagerClass(
  			Class<? extends DirectoryManager> clazz)
focal_class.class_method_signature: DirectoryManagerFactory.createDirectoryManager(Path path,
  			boolean readOnly)
focal_class.full_signature: public static DirectoryManager createDirectoryManager(Path path,
  			boolean readOnly)
focal_class.identifier: createDirectoryManager
focal_class.modifiers: public static
focal_class.parameters: (Path path,
  			boolean readOnly)
focal_class.return: DirectoryManager
focal_class.signature: DirectoryManager createDirectoryManager(Path path,
  			boolean readOnly)
focal_class.class_method_signature: DirectoryManagerFactory.createDirectoryManager(String directory,
  			boolean readOnly)
focal_class.full_signature: public static DirectoryManager createDirectoryManager(String directory,
  			boolean readOnly)
focal_class.identifier: createDirectoryManager
focal_class.modifiers: public static
focal_class.parameters: (String directory,
  			boolean readOnly)
focal_class.return: DirectoryManager
focal_class.signature: DirectoryManager createDirectoryManager(String directory,
  			boolean readOnly)
focal_method.body: public static DirectoryManager createDirectoryManager(Path path,
  			boolean readOnly) throws IOException {
  		try {
  			return dmClass.getConstructor(Path.class, Boolean.class)
  					.newInstance(path, readOnly);
  		} catch (InstantiationException | IllegalAccessException
  				| IllegalArgumentException | NoSuchMethodException
  				| SecurityException e) {
  			throw new RuntimeException(e.toString(), e);
  		} catch (InvocationTargetException e) {
  			if (e.getTargetException() instanceof IOException) {
  				throw (IOException) e.getTargetException();
  			} else {
  				throw new RuntimeException(e.getTargetException().toString(),
  						e.getTargetException());
  			}
  		}
  	}
focal_method.class_method_signature: DirectoryManagerFactory.createDirectoryManager(Path path,
  			boolean readOnly)
focal_method.full_signature: public static DirectoryManager createDirectoryManager(Path path,
  			boolean readOnly)
focal_method.identifier: createDirectoryManager
focal_method.invocations: newInstance getConstructor toString getTargetException getTargetException toString getTargetException getTargetException
focal_method.modifiers: public static
focal_method.parameters: (Path path,
  			boolean readOnly)
focal_method.return: DirectoryManager
focal_method.signature: DirectoryManager createDirectoryManager(Path path,
  			boolean readOnly)