Project

General

Profile

« Previous | Next » 

Revision 9259

Added by Jing Tao over 9 years ago

Make more cap for the testing.

View differences:

test/edu/ucsb/nceas/metacat/MetacatProfilerTest.java
121 121
	    Hashtable<String, Profile> h = mp.getProfiles();
122 122
	    Profile p = h.get("test1");
123 123
	    System.out.println("p: " + p.toString());
124
	    assertTrue(p.total >= 100 && p.total < 105);
124
	    assertTrue(p.total >= 100 && p.total < 150);
125 125
	    assertTrue(p.methodcalls == 1);
126 126
	    
127 127
	    
......
139 139
	    assertTrue(h.size() == 2);
140 140
	    p = h.get("test2");
141 141
	    System.out.println("p: " + p.toString());
142
	    assertTrue(p.total >= 300 && p.total < 310);
142
	    assertTrue(p.total >= 300 && p.total < 350);
143 143
	    assertTrue(p.methodcalls == 2);
144 144
	    Profile p2 = h.get("test3");
145 145
	    System.out.println("p2: " + p2.toString());
146
	    assertTrue(p2.total >= 50 && p2.total < 55);
146
	    assertTrue(p2.total >= 50 && p2.total < 100);
147 147
	    assertTrue(p2.methodcalls == 1);
148 148
	}
149 149
	

Also available in: Unified diff