org.hamcrest.core.IsNull.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.hamcrest.core.IsNull.<init>()方法的一些代码示例,展示了IsNull.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IsNull.<init>()方法的具体详情如下:
包路径:org.hamcrest.core.IsNull
类名称:IsNull
方法名:<init>

IsNull.<init>介绍

暂无

代码示例

代码示例来源:origin: hamcrest/JavaHamcrest

/**
 * 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>();
}

代码示例来源:origin: hamcrest/JavaHamcrest

/**
 * 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>();
}

代码示例来源:origin: google/j2objc

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/hamcrest-all

/**
 * 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>();
}

代码示例来源:origin: google/j2objc

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/hamcrest-all

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/java-hamcrest

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/java-hamcrest

/**
 * 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>();
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * 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>();
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/hamcrest

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/hamcrest

/**
 * 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>();
}

代码示例来源:origin: javaee/grizzly

/**
 * 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>();
}

代码示例来源:origin: javaee/grizzly

/**
 * 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>();
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * 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>();
}

代码示例来源:origin: com.oracle/truffle-tck

/**
 * 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>();
}

代码示例来源:origin: org.hamcrest/com.springsource.org.hamcrest.core

/**
 * Matches if value is null.
 */
@Factory
public static <T> Matcher<T> nullValue() {
  return new IsNull<T>();
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * 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>();
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.hamcrest.core

/**
 * 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>();
}

代码示例来源:origin: Qihoo360/Quicksql

@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..*");
 }
}

相关文章