Project

General

Profile

« Previous | Next » 

Revision 4816

Added by daigle about 15 years ago

Remove initialization of MetacatUtil.buildIndexPaths in test files. This is taken care of in the background now using SystemUtil.getIndexPaths()

View differences:

BuildIndexTest.java
61 61
	private static String password;
62 62
	static {
63 63
		try {
64
			PropertyService.getInstance();
64 65
			metacatUrl = PropertyService.getProperty("test.metacatUrl");
65 66
			username = PropertyService.getProperty("test.mcUser");
66 67
			password = PropertyService.getProperty("test.mcPassword");
67 68
		} catch (PropertyNotFoundException pnfe) {
68 69
			System.err.println("Could not get property in static block: "
69 70
					+ pnfe.getMessage());
71
		} catch (ServiceException se) {
72
			System.err.println("Service problem in static block: "
73
					+ se.getMessage());
70 74
		}
71 75
	}
72 76

  
......
75 79
	private String testfile = "test/eml-sample.xml";
76 80
	private String testdocument = "";
77 81
	private Metacat m;
78
	/* Initialize properties */
79
	static {
80
		try {
81
//			PropertyService.getInstance("build/tests");
82
			PropertyService.getInstance();
83
			MetacatUtil.pathsForIndexing = MetacatUtil.getOptionList(PropertyService
84
					.getProperty("xml.indexPaths"));
85
		} catch (Exception e) {
86
			System.err.println("Exception in initialize option in MetacatServletNetTest "
87
					+ e.getMessage());
88
		}
89
	}
90 82

  
91 83
	/**
92 84
	 * Constructor to build the test

Also available in: Unified diff