/** * Creates a matcher that matches if examined object is <code>null</code>. Accepts a * single dummy argument to facilitate type inference. * For example: * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre> * * @param type * dummy parameter used to infer the generic type of the returned matcher */ public static <T> Matcher<T> nullValue(Class<T> type) { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. Accepts a * single dummy argument to facilitate type inference. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre> * * @param type * dummy parameter used to infer the generic type of the returned matcher */ @Factory public static <T> Matcher<T> nullValue(Class<T> type) { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. Accepts a * single dummy argument to facilitate type inference. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre> * * @param type * dummy parameter used to infer the generic type of the returned matcher */ @Factory public static <T> Matcher<T> nullValue(Class<T> type) { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. Accepts a * single dummy argument to facilitate type inference. * For example: * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre> * * @param type * dummy parameter used to infer the generic type of the returned matcher */ public static <T> Matcher<T> nullValue(Class<T> type) { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. Accepts a * single dummy argument to facilitate type inference. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre> * * @param type * dummy parameter used to infer the generic type of the returned matcher */ @Factory public static <T> Matcher<T> nullValue(Class<T> type) { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. Accepts a * single dummy argument to facilitate type inference. * For example: * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre> * * @param type * dummy parameter used to infer the generic type of the returned matcher */ public static <T> Matcher<T> nullValue(Class<T> type) { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Matches if value is null. */ @Factory public static <T> Matcher<T> nullValue() { return new IsNull<T>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
/** * Creates a matcher that matches if examined object is <code>null</code>. * <p/> * For example: * <pre>assertThat(cheese, is(nullValue())</pre> * */ @Factory public static Matcher<Object> nullValue() { return new IsNull<Object>(); }
@Test public void testExtendedSqlStmt() { sql("DESCRIBE SPACE POWER") .node(new IsNull<SqlNode>()); sql("DESCRIBE SEA ^POWER^") .fails("(?s)Encountered \"POWER\" at line 1, column 14..*"); } }