@Test public void testGetMigrationPath() throws Exception { URI inputFormat = new URI("info:test/lowercase"); URI outputFormat = new URI("info:test/uppercase"); this.migrationPathsToTest.getMigrationPath(inputFormat, outputFormat); genericGetInstanceFailCheck(outputFormat, inputFormat); inputFormat = new URI("info:test/foo"); outputFormat = new URI("info:test/bar"); this.migrationPathsToTest.getMigrationPath(inputFormat, outputFormat); genericGetInstanceFailCheck(outputFormat, inputFormat); }
MigrationPath getMigrationPath(URI inputFormat, URI outputFormat) throws NoSuchPathException { final PathKey pathKey = new PathKey(inputFormat, outputFormat); final MigrationPath migrationPath = this.migrationPaths.get(pathKey); if (migrationPath == null) { throw new NoSuchPathException( "No migration path found for input format URI=\"" + inputFormat + "\" and output format URI=\"" + outputFormat + "\""); } return migrationPath; }
MigrationPaths { MigrationPath getMigrationPath(URI inputFormat, URI outputFormat) throws NoSuchPathException { final PathKey pathKey = new PathKey(inputFormat, outputFormat); final MigrationPath migrationPath = this.migrationPaths.get(pathKey); if (migrationPath == null) { throw new NoSuchPathException( "No migration path found for input format URI=\"" + inputFormat + "\" and output format URI=\"" + outputFormat + "\""); } return migrationPath; } }
MigrationPaths { MigrationPath getMigrationPath(URI inputFormat, URI outputFormat) throws NoSuchPathException { final PathKey pathKey = new PathKey(inputFormat, outputFormat); final MigrationPath migrationPath = this.migrationPaths.get(pathKey); if (migrationPath == null) { throw new NoSuchPathException( "No migration path found for input format URI=\"" + inputFormat + "\" and output format URI=\"" + outputFormat + "\""); } return migrationPath; } MigrationPaths(); }
MigrationPaths { MigrationPath getMigrationPath(URI inputFormat, URI outputFormat) throws NoSuchPathException { final PathKey pathKey = new PathKey(inputFormat, outputFormat); final MigrationPath migrationPath = this.migrationPaths.get(pathKey); if (migrationPath == null) { throw new NoSuchPathException( "No migration path found for input format URI=\"" + inputFormat + "\" and output format URI=\"" + outputFormat + "\""); } return migrationPath; } MigrationPaths();  }
MigrationPaths { MigrationPath getMigrationPath(URI inputFormat, URI outputFormat) throws NoSuchPathException { final PathKey pathKey = new PathKey(inputFormat, outputFormat); final MigrationPath migrationPath = this.migrationPaths.get(pathKey); if (migrationPath == null) { throw new NoSuchPathException( "No migration path found for input format URI=\"" + inputFormat + "\" and output format URI=\"" + outputFormat + "\""); } return migrationPath; } MigrationPaths();   }