Permalink
Browse files

added post-processed file to test

  • Loading branch information...
1 parent ebff937 commit b6808db58a40c202269552ed82d778466dd24148 @jiwalker-usgs committed Feb 21, 2014
Showing with 12 additions and 20 deletions.
  1. +12 −20 prms-datastore/src/test/java/gov/usgs/cida/prms/PRMSAnimationFileMetaDataTest.java
@@ -9,28 +9,9 @@
* @author tkunicki
*/
public class PRMSAnimationFileMetaDataTest {
-
- public PRMSAnimationFileMetaDataTest() {
- }
-
- @BeforeClass
- public static void setUpClass() throws Exception {
- }
-
- @AfterClass
- public static void tearDownClass() throws Exception {
- }
-
- @Before
- public void setUp() {
- }
-
- @After
- public void tearDown() {
- }
@Test
- public void findAnimationFile() throws Exception {
+ public void testOldAnimationFile() throws Exception {
URL url = getClass().getClassLoader().getResource("pcm.a1fi.1980-2099.annual.animation.nhru");
File oldMetaData = new File(url.getPath() + ".xml");
if (oldMetaData.exists()) {
@@ -39,5 +20,16 @@ public void findAnimationFile() throws Exception {
PRMSAnimationFileMetaData result = PRMSAnimationFileMetaData.getMetaData(url);
System.out.println(result);
}
+
+ @Test
+ public void testNewAnimationFile() throws Exception {
+ URL url = getClass().getClassLoader().getResource("cccma_post-processed.nhru");
+ File oldMetaData = new File(url.getPath() + ".xml");
+ if (oldMetaData.exists()) {
+ oldMetaData.delete();
+ }
+ PRMSAnimationFileMetaData result = PRMSAnimationFileMetaData.getMetaData(url);
+ System.out.println(result);
+ }
}

0 comments on commit b6808db

Please sign in to comment.