Project

General

Profile

« Previous | Next » 

Revision 8695

Added by Jing Tao almost 11 years ago

Add the login test of the pisco account.

View differences:

test/edu/ucsb/nceas/metacattest/MetaCatServletTest.java
136 136
		suite.addTest(new MetaCatServletTest("testLogOut"));
137 137
		
138 138
		suite.addTest(new MetaCatServletTest("testReindexFail"));
139

  
139
		
140
		suite.addTest(new MetaCatServletTest("testPiscoReferralLogin"));
141
		
142
		suite.addTest(new MetaCatServletTest("testPiscoReferralLoginFail"));
143
		
140 144
		return suite;
141 145
	}
142 146

  
......
244 248
		assertTrue(!logIn(user, passwd));
245 249
		// assertTrue( withProtocol.getProtocol().equals("http"));
246 250
	}
251
	
252
	/**
253
     * Test the login to Other succesfully
254
     */
255
    public void testPiscoReferralLogin() {
256
        debug("\nRunning: testPiscoReferralLogin test");
257
        String user = piscouser;
258
        String passwd = piscopassword;
259
        debug("logging in pisco user: " + user + ":" + passwd);
260
        assertTrue(logIn(user, passwd));
261
        // assertTrue( withProtocol.getProtocol().equals("http"));
262
    }
247 263

  
264
    /**
265
     * Test the login to Other failed
266
     */
267
    public void testPiscoReferralLoginFail() {
268
        debug("\nRunning: testPiscoReferralLoginFail test");
269
        String user = piscouser;
270
        String passwd = "wrong";
271
        assertTrue(!logIn(user, passwd));
272
        // assertTrue( withProtocol.getProtocol().equals("http"));
273
    }
274

  
248 275
	/**
249 276
	 * Test insert a xml document successfully
250 277
	 */

Also available in: Unified diff