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

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

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

IsNull.<init>介绍

暂无

代码示例

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
  3. * single dummy argument to facilitate type inference.
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
  6. *
  7. * @param type
  8. * dummy parameter used to infer the generic type of the returned matcher
  9. */
  10. public static <T> Matcher<T> nullValue(Class<T> type) {
  11. return new IsNull<T>();
  12. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * For example:
  4. * <pre>assertThat(cheese, is(nullValue())</pre>
  5. *
  6. */
  7. public static Matcher<Object> nullValue() {
  8. return new IsNull<Object>();
  9. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
  3. * single dummy argument to facilitate type inference.
  4. * <p/>
  5. * For example:
  6. * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
  7. *
  8. * @param type
  9. * dummy parameter used to infer the generic type of the returned matcher
  10. */
  11. @Factory
  12. public static <T> Matcher<T> nullValue(Class<T> type) {
  13. return new IsNull<T>();
  14. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
  3. * single dummy argument to facilitate type inference.
  4. * <p/>
  5. * For example:
  6. * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
  7. *
  8. * @param type
  9. * dummy parameter used to infer the generic type of the returned matcher
  10. */
  11. @Factory
  12. public static <T> Matcher<T> nullValue(Class<T> type) {
  13. return new IsNull<T>();
  14. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * For example:
  4. * <pre>assertThat(cheese, is(nullValue())</pre>
  5. *
  6. */
  7. public static Matcher<Object> nullValue() {
  8. return new IsNull<Object>();
  9. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
  3. * single dummy argument to facilitate type inference.
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
  6. *
  7. * @param type
  8. * dummy parameter used to infer the generic type of the returned matcher
  9. */
  10. public static <T> Matcher<T> nullValue(Class<T> type) {
  11. return new IsNull<T>();
  12. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
  3. * single dummy argument to facilitate type inference.
  4. * <p/>
  5. * For example:
  6. * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
  7. *
  8. * @param type
  9. * dummy parameter used to infer the generic type of the returned matcher
  10. */
  11. @Factory
  12. public static <T> Matcher<T> nullValue(Class<T> type) {
  13. return new IsNull<T>();
  14. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * For example:
  4. * <pre>assertThat(cheese, is(nullValue())</pre>
  5. *
  6. */
  7. public static Matcher<Object> nullValue() {
  8. return new IsNull<Object>();
  9. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
  3. * single dummy argument to facilitate type inference.
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
  6. *
  7. * @param type
  8. * dummy parameter used to infer the generic type of the returned matcher
  9. */
  10. public static <T> Matcher<T> nullValue(Class<T> type) {
  11. return new IsNull<T>();
  12. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Matches if value is null.
  3. */
  4. @Factory
  5. public static <T> Matcher<T> nullValue() {
  6. return new IsNull<T>();
  7. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. /**
  2. * Creates a matcher that matches if examined object is <code>null</code>.
  3. * <p/>
  4. * For example:
  5. * <pre>assertThat(cheese, is(nullValue())</pre>
  6. *
  7. */
  8. @Factory
  9. public static Matcher<Object> nullValue() {
  10. return new IsNull<Object>();
  11. }

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

  1. @Test public void testExtendedSqlStmt() {
  2. sql("DESCRIBE SPACE POWER")
  3. .node(new IsNull<SqlNode>());
  4. sql("DESCRIBE SEA ^POWER^")
  5. .fails("(?s)Encountered \"POWER\" at line 1, column 14..*");
  6. }
  7. }

相关文章