Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.25 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.25 KB

sqlmatchers

Build Status Maven Central License

This library contains Hamcrest matchers to validate SQL statements.

It is expected to be used in unit tests to validate correctness of generated SQL.

Usage

Dependency can be downloaded from central Maven repository.

<dependency>
	<groupId>eu.vytenis.hamcrest</groupId>
	<artifactId>sqlmatchers</artifactId>
	<version>0.4</version>
</dependency>

If you are missing org.gibello:zql-parser

		<dependency>
			<groupId>eu.vytenis.hamcrest</groupId>
			<artifactId>sqlmatchers</artifactId>
			<version>0.4</version>
			<classifier>jar-with-dependencies</classifier>
			<exclusions>
				<exclusion>
					<groupId>org.gibello</groupId>
					<artifactId>zql-parser</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
assertThat("select * from dual", isSelect());