1 /*
2 * Copyright 2004 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17 package org.apache.asn1.ber ;
18
19
20 import junit.framework.TestCase ;
21 import org.apache.asn1.ber.BERDecoderCallbackAdapter;
22
23
24 /**
25 * Tests for the adapter to pass clover coverage.
26 *
27 * @author <a href="mailto:dev@directory.apache.org">
28 * Apache Directory Project</a>
29 * @version $Rev: 157644 $
30 */
31 public class BERDecoderCallbackAdapterTest extends TestCase
32 {
33 BERDecoderCallbackAdapter adapter = null ;
34
35
36 public static void main(String[] args)
37 {
38 junit.textui.TestRunner.run(BERDecoderCallbackAdapterTest.class);
39 }
40
41 /*
42 * @see TestCase#setUp()
43 */
44 protected void setUp() throws Exception
45 {
46 super.setUp();
47 adapter = new BERDecoderCallbackAdapter() ;
48 }
49
50 /*
51 * @see TestCase#tearDown()
52 */
53 protected void tearDown() throws Exception
54 {
55 super.tearDown();
56 adapter = null ;
57 }
58
59 /**
60 * Constructor for BERDecoderCallbackAdapter.
61 * @param arg0
62 */
63 public BERDecoderCallbackAdapterTest(String arg0)
64 {
65 super(arg0);
66 }
67
68 public void testTagDecoded()
69 {
70 adapter.tagDecoded( null ) ;
71 }
72
73 public void testLengthDecoded()
74 {
75 adapter.lengthDecoded( null ) ;
76 }
77
78 public void testPartialValueDecoded()
79 {
80 adapter.partialValueDecoded( null ) ;
81 }
82
83 public void testDecodeOccurred()
84 {
85 adapter.decodeOccurred( null, null ) ;
86 }
87
88 }