Skip to content

Library contains Hamcrest matchers to validate SQL statements. It is expected to be used in unit tests to validate correctness of generated SQL.

Notifications You must be signed in to change notification settings

monrealis/hamcrest-sqlmatchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());

About

Library contains Hamcrest matchers to validate SQL statements. It is expected to be used in unit tests to validate correctness of generated SQL.

Resources

Stars

Watchers

Forks

Packages

No packages published