Project

General

Profile

« Previous | Next » 

Revision 3359

Added by Jing Tao over 16 years ago

Delete a test for printAttributeQuery which was delete from java file.

View differences:

test/edu/ucsb/nceas/metacattest/QuerySpecificationTest.java
114 114
    {
115 115
        try {
116 116
            System.out.println("---- EXT SQL ------------------");
117
            Hashtable controlPairs = new Hashtable();
118 117
            QuerySpecification qspec = new QuerySpecification(xml, 
119 118
                    MetaCatUtil.getOption("saxparser"), 
120 119
                    MetaCatUtil.getOption("accNumberSeparator"));
121 120
            System.out.println(
122 121
                    qspec.printExtendedSQL(
123
                            "'obfs.45337', 'obfs.45338', 'obfs.45346'", 
124
                            controlPairs, false));
122
                            "'obfs.45337', 'obfs.45338', 'obfs.45346'", false));
125 123
        } catch (IOException e) {
126 124
            fail(e.getMessage());
127 125
        }
128 126
    }
129 127

  
130
    /**
131
     * Print the extended SQL for a result set.
132
     */
133
    public void testAttributeSQL()
134
    {
135
        try {
136
            System.out.println("---- ATT SQL ------------------");
137
            Hashtable controlPairs = new Hashtable();
138
            QuerySpecification qspec = new QuerySpecification(xml, 
139
                    MetaCatUtil.getOption("saxparser"), 
140
                    MetaCatUtil.getOption("accNumberSeparator"));
141
            System.out.println(
142
                    qspec.printAttributeQuery(
143
                            "'obfs.45337', 'obfs.45338', 'obfs.45346'", false));
144
        } catch (IOException e) {
145
            fail(e.getMessage());
146
        }
147
    }
128
 
148 129
}

Also available in: Unified diff