1 package net.sourceforge.heracles.service;
2
3 /**
4 * Title: SearchImplTest.java<br>
5 * Copyright: HFT-SO<br>
6 * Java Version: JDK 1.5<br>
7 *
8 * @author Philipp Gantert
9 * @version 1.0
10 */
11
12 import junit.framework.TestCase;
13 import net.sourceforge.heracles.service.impl.SearchImpl;
14 import net.sourceforge.heracles.utilities.HeraclesException;
15
16 public class SearchImplTest extends TestCase {
17
18 public void testValidating() throws Exception{
19 Search search=new SearchImpl();
20 try{
21 search.searchInLdap(null, "", "");
22 fail("Here should be a HeraclesException");
23 }catch(HeraclesException ex){
24
25 }
26 try{
27 search.searchInLdap("", null, "");
28 fail("Here should be a HeraclesException");
29 }catch(HeraclesException ex){
30
31 }
32 try{
33 search.searchInLdap("", "", null);
34 fail("Here should be a HeraclesException");
35 }catch(HeraclesException ex){
36
37 }
38 }
39
40 }