package com.github.davidmoten.rx.jdbc;

import org.junit.Test;

public class ConditionsTest {

	@Test
	public void testTrueDoesNotThrowException() {
		Conditions.checkTrue(true);
	}

	@Test(expected = RuntimeException.class)
	public void testFalseThrowsException() {
		Conditions.checkTrue(false);
	}

	@Test
	public void obtainCoverageOfPrivateConstructor() {
		TestingUtil.instantiateUsingPrivateConstructor(Conditions.class);
	}

}

package com.github.davidmoten.rx.jdbc;

import org.junit.Test;

public class ConditionsTest {

	@Test
	public void testCheckTrueDoesNotThrowException() {
		Conditions.checkTrue(true);
	}

	@Test(expected = RuntimeException.class)
	public void testCheckTrueThrowsException() {
		Conditions.checkTrue(false);
	}

	@Test
	public void testCheckFalseDoesNotThrowException() {
		Conditions.checkFalse(false);
	}

	@Test(expected = RuntimeException.class)
	public void testCheckFalseThrowsException() {
		Conditions.checkFalse(true);
	}

	@Test
	public void testCheckNotNullDoesNotThrowException() {
		Conditions.checkNotNull(new Object());
	}

	@Test(expected = RuntimeException.class)
	public void testCheckNotNullThrowsException() {
		Conditions.checkNotNull(null);
	}

	@Test
	public void obtainCoverageOfPrivateConstructor() {
		TestingUtil.instantiateUsingPrivateConstructor(Conditions.class);
	}

}

add unit test for Conditions