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:
19: package org.apache.tools.ant.taskdefs;
20:
21: import org.apache.tools.ant.BuildFileTest;
22:
23: import java.io.IOException;
24:
25: /**
26: */
27: public class ChecksumTest extends BuildFileTest {
28:
29: public ChecksumTest(String name) {
30: super (name);
31: }
32:
33: public void setUp() {
34: configureProject("src/etc/testcases/taskdefs/checksum.xml");
35: }
36:
37: public void tearDown() {
38: executeTarget("cleanup");
39: }
40:
41: public void testCreateMd5() throws IOException {
42: executeTarget("createMd5");
43: }
44:
45: public void testCreateMD5SUMformat() throws IOException {
46: executeTarget("createMD5SUMformat");
47: }
48:
49: public void testCreateSVFformat() throws IOException {
50: executeTarget("createSVFformat");
51: }
52:
53: public void testCreatePattern() throws IOException {
54: executeTarget("createPattern");
55: }
56:
57: public void testSetProperty() {
58: executeTarget("setProperty");
59: }
60:
61: public void testVerifyTotal() {
62: executeTarget("verifyTotal");
63: }
64:
65: public void testVerifyTotalRC() {
66: executeTarget("verifyTotalRC");
67: }
68:
69: public void testVerifyChecksumdir() {
70: executeTarget("verifyChecksumdir");
71: }
72:
73: public void testVerifyAsTask() {
74: executeTarget("verifyAsTask");
75: }
76:
77: public void testVerifyMD5SUMAsTask() {
78: executeTarget("verifyMD5SUMAsTask");
79: }
80:
81: public void testVerifyAsCondition() {
82: executeTarget("verifyAsCondition");
83: }
84:
85: public void testVerifyFromProperty() {
86: executeTarget("verifyFromProperty");
87: }
88:
89: public void testVerifyChecksumdirNoTotal() {
90: executeTarget("verifyChecksumdirNoTotal");
91: }
92:
93: }
|