Skip to content

Commit

Permalink
test/style: UrlParseTest better message for n5FileUrlEquivalencyTest
Browse files Browse the repository at this point in the history
* and clean up
  • Loading branch information
bogovicj committed Oct 3, 2024
1 parent e12c269 commit 13bca35
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/test/java/bigwarp/url/UrlParseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,6 @@ public void testUrlSources() throws SpimDataException, URISyntaxException, IOExc
}
}

// @Test
// public void testUrlTransforms()
// {
// final String n5Path = new File( "src/test/resources/bigwarp/url/transformTest.n5" ).getAbsolutePath();
//
// final String s0Url = n5Path + "?ant&transform=[0]";
// final String s0DefaultUrl = n5Path + "?ant&transform=[0]";
//
// TODO when we're ready
// final Object s0 = loadTransformFromUrl( s0Url );
// final Object s0Default = loadTransformFromUrl( s0DefaultUrl );
//
// assertNotNull( s0 );
// assertNotNull( s0Default );
// assertEquals( s0, s0Default );
// }

@Test
public < T extends NativeType<T> > void n5FileUrlEquivalencyTest() throws IOException, SpimDataException, URISyntaxException
{
Expand Down Expand Up @@ -161,16 +144,10 @@ public < T extends NativeType<T> > void n5FileUrlEquivalencyTest() throws IOExce
{
final int setupId = id.getAndIncrement();
BigWarpInit.add( data, BigWarpInit.createSources( data, uri, setupId, new Random().nextBoolean() ) );
assertEquals( uri, data.sourceInfos.get( setupId ).getUri() );
assertEquals( "failed for: " + uri, uri, data.sourceInfos.get( setupId ).getUri() );
}
}

// private Object loadTransformFromUrl( final String url )
// {
// // TODO Caleb will remove me and replace calls to me with something real
// return null;
// }

private < T extends NativeType<T> > Source< ? > loadSourceFromUri( final String uri ) throws SpimDataException, URISyntaxException, IOException
{

Expand Down

0 comments on commit 13bca35

Please sign in to comment.