/tst/org/diffkit/db/tst/TestDBConnectionInfo.groovy
http://diffkit.googlecode.com/ · Groovy · 39 lines · 13 code · 8 blank · 18 comment · 2 complexity · 4d7b4a3a0f1781b3bee193b0ad5aa913 MD5 · raw file
- /**
- * Copyright 2010-2011 Joseph Panico
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- package org.diffkit.db.tst
- import org.diffkit.db.DKDBConnectionInfo;
- import org.diffkit.db.DKDBFlavor;
- import groovy.util.GroovyTestCase;
- /**
- * @author jpanico
- */
- public class TestDBConnectionInfobleComparator extends GroovyTestCase {
-
- public void testH2(){
-
- DKDBConnectionInfo connectionInfo = ['test', DKDBFlavor.H2,"mem:test", null, null, 'test', 'test']
- println "connectionInfo->$connectionInfo"
-
- assert connectionInfo.JDBCUrl
- assert connectionInfo.JDBCUrl == 'jdbc:h2:mem:test'
- assert connectionInfo.driverName == 'org.h2.Driver'
- }
- }