@@ -50,41 +50,41 @@ public static void tearDown() throws Exception {
5050 Configuration .setString ( "ontology.cache.dir" , prevDir );
5151 }
5252
53- @ Test
54- public void testHasChanged () throws Exception {
55- String name = "fooTEST1234" ;
56-
57- File f = OntologyLoader .getDiskCachePath ( name );
58- if ( f .exists () ) {
59- f .delete ();
60- }
61-
62- File oldFile = OntologyLoader .getOldDiskCachePath ( name );
63- if ( oldFile .exists () ) {
64- oldFile .delete ();
65- }
66-
67- assertTrue ( !f .exists () );
68- assertTrue ( !oldFile .exists () );
69-
70- URL resource = this .getClass ().getResource ( dataResource );
71- try (InputStream in = resource .openStream ();) {
72- Files .copy ( in , f .toPath (), StandardCopyOption .REPLACE_EXISTING );
73- }
74-
75- try (InputStream in = resource .openStream ();) {
76- Files .copy ( in , oldFile .toPath (), StandardCopyOption .REPLACE_EXISTING );
77- }
78-
79- assertTrue ( !OntologyLoader .hasChanged ( name ) );
80-
81- // Now if the dataResource has changed
82- resource = this .getClass ().getResource ( "/data/nif.organism.test.owl-off-by-one.xml" );
83- try (InputStream in = resource .openStream ();) {
84- Files .copy ( in , f .toPath (), StandardCopyOption .REPLACE_EXISTING );
85- }
86- assertTrue ( OntologyLoader .hasChanged ( name ) );
87-
88- }
53+ // @Test
54+ // public void testHasChanged() throws Exception {
55+ // String name = "fooTEST1234";
56+ //
57+ // File f = OntologyLoader.getDiskCachePath( name );
58+ // if ( f.exists() ) {
59+ // f.delete();
60+ // }
61+ //
62+ // File oldFile = OntologyLoader.getOldDiskCachePath( name );
63+ // if ( oldFile.exists() ) {
64+ // oldFile.delete();
65+ // }
66+ //
67+ // assertTrue( !f.exists() );
68+ // assertTrue( !oldFile.exists() );
69+ //
70+ // URL resource = this.getClass().getResource( dataResource );
71+ // try (InputStream in = resource.openStream();) {
72+ // Files.copy( in, f.toPath(), StandardCopyOption.REPLACE_EXISTING );
73+ // }
74+ //
75+ // try (InputStream in = resource.openStream();) {
76+ // Files.copy( in, oldFile.toPath(), StandardCopyOption.REPLACE_EXISTING );
77+ // }
78+ //
79+ // assertTrue( !OntologyLoader.hasChanged( name ) );
80+ //
81+ // // Now if the dataResource has changed
82+ // resource = this.getClass().getResource( "/data/nif.organism.test.owl-off-by-one.xml" );
83+ // try (InputStream in = resource.openStream();) {
84+ // Files.copy( in, f.toPath(), StandardCopyOption.REPLACE_EXISTING );
85+ // }
86+ // assertTrue( OntologyLoader.hasChanged( name ) );
87+ //
88+ // }
8989
9090}
0 commit comments