01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Hugo Beilis
19: * @author Leonardo Soler
20: * @author Gabriel Miretti
21: * @version 1.0
22: */package org.apache.harmony.jndi.tests.javax.naming.ldap.whitebox;
23:
24: import org.apache.harmony.jndi.tests.javax.naming.spi.mock.ldap.MockLdapReferralException;
25:
26: import junit.framework.TestCase;
27:
28: /**
29: * <p>This class test is made to test all cases of package where the coverage was not 100%.</p>
30: * <p>We are going to find here a lot cases from different classes, notice here that the conventional structure
31: * followed in the rest of the project is applied here.</p>
32: *
33: */
34: public class TestLdapReferralException extends TestCase {
35:
36: public static void main(String[] args) {
37: }
38:
39: public TestLdapReferralException(String name) {
40: super (name);
41: }
42:
43: protected void setUp() throws Exception {
44: super .setUp();
45: }
46:
47: protected void tearDown() throws Exception {
48: super .tearDown();
49: }
50:
51: /**
52: * Here we are testing if this method receives a string a creates a not null object.
53: *
54: */
55: public void testLdapReferralExceptionString() {
56: MockLdapReferralException mc = new MockLdapReferralException(
57: "test");
58: assertNotNull(mc);
59: }
60: }
|