1 /*
2 *
3 * The DbUnit Database Testing Framework
4 * Copyright (C)2002-2004, DbUnit.org
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
21
22 package org.dbunit.dataset;
23
24 import java.io.FileReader;
25
26 import org.dbunit.dataset.xml.XmlDataSet;
27 import org.dbunit.testutil.TestUtils;
28
29 /**
30 * @author Manuel Laflamme
31 * @author Last changed by: $Author: jbhurst $
32 * @version $Revision: 1162 $ $Date: 2010-02-12 00:29:37 +0100 (ven, 12 feb 2010) $
33 * @since 1.0 (Mar 27, 2002)
34 */
35 public class CaseInsensitiveDataSetTest extends AbstractDataSetTest
36 {
37 public CaseInsensitiveDataSetTest(String s)
38 {
39 super(s);
40 }
41
42 protected IDataSet createDataSet() throws Exception
43 {
44 return new CaseInsensitiveDataSet(new XmlDataSet(TestUtils.getFileReader(
45 "xml/caseInsensitiveDataSetTest.xml")));
46 }
47
48 protected IDataSet createDuplicateDataSet() throws Exception
49 {
50 throw new UnsupportedOperationException();
51 }
52
53 protected IDataSet createMultipleCaseDuplicateDataSet() throws Exception
54 {
55 throw new UnsupportedOperationException();
56 }
57
58 protected void assertEqualsTableName(String message, String expected,
59 String actual)
60 {
61 assertEqualsIgnoreCase(message, expected, actual);
62 }
63
64 public void testCreateDuplicateDataSet() throws Exception
65 {
66 // No op. This dataSet is only a wrapper for another dataSet which is why duplicates cannot occur.
67 }
68
69 public void testCreateMultipleCaseDuplicateDataSet() throws Exception
70 {
71 // No op. This dataSet is only a wrapper for another dataSet which is why duplicates cannot occur.
72 }
73
74 }
75
76