-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3: added test and documentation for resultSets matcher
- Loading branch information
1 parent
33fe535
commit 54d2f8a
Showing
7 changed files
with
225 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/test/java/com/exasol/matcher/AbstractResultSetMatcherTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.exasol.matcher; | ||
|
||
import java.sql.*; | ||
|
||
public class AbstractResultSetMatcherTest { | ||
protected Statement statement; | ||
|
||
protected void execute(final String sql) { | ||
try { | ||
this.statement.execute(sql); | ||
} catch (final SQLException execption) { | ||
throw new AssertionError("Unable to execute SQL statement: " + sql, execption); | ||
} | ||
} | ||
|
||
protected ResultSet query(final String sql) { | ||
try { | ||
return this.statement.executeQuery(sql); | ||
} catch (final SQLException exeption) { | ||
throw new AssertionError("Unable to run query: " + sql, exeption); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.