Revision 5035
Added by daigle almost 15 years ago
VersionTest.java | ||
---|---|---|
24 | 24 |
package edu.ucsb.nceas.metacattest; |
25 | 25 |
|
26 | 26 |
import edu.ucsb.nceas.MCTestCase; |
27 |
import edu.ucsb.nceas.metacat.MetaCatVersion;
|
|
28 |
import edu.ucsb.nceas.metacat.service.PropertyService;
|
|
27 |
import edu.ucsb.nceas.metacat.MetacatVersion;
|
|
28 |
import edu.ucsb.nceas.metacat.properties.PropertyService;
|
|
29 | 29 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
30 | 30 |
|
31 | 31 |
|
... | ... | |
51 | 51 |
public void testGetVersion() |
52 | 52 |
{ |
53 | 53 |
try { |
54 |
assertTrue(PropertyService.getProperty("application.metacatVersion").equals(MetaCatVersion.getVersionID()));
|
|
55 |
System.out.println(MetaCatVersion.getVersionID());
|
|
54 |
assertTrue(PropertyService.getProperty("application.metacatVersion").equals(MetacatVersion.getVersionID()));
|
|
55 |
System.out.println(MetacatVersion.getVersionID());
|
|
56 | 56 |
} catch (PropertyNotFoundException pnfe) { |
57 | 57 |
fail ("Could not get metacat version property; " + pnfe.getMessage()); |
58 | 58 |
} |
... | ... | |
65 | 65 |
public void testPrintVersionAsXml() |
66 | 66 |
{ |
67 | 67 |
try { |
68 |
System.out.println(MetaCatVersion.getVersionAsXml());
|
|
69 |
assertTrue(MetaCatVersion.getVersionAsXml().indexOf(
|
|
68 |
System.out.println(MetacatVersion.getVersionAsXml());
|
|
69 |
assertTrue(MetacatVersion.getVersionAsXml().indexOf(
|
|
70 | 70 |
PropertyService.getProperty("application.metacatVersion")) != -1); |
71 | 71 |
} catch (PropertyNotFoundException pnfe) { |
72 | 72 |
fail ("Could not get metacat version property; " + pnfe.getMessage()); |
Also available in: Unified diff
Change location of PropertyService to properties directory