Tabnine Logo
StringContains
Code IndexAdd Tabnine to your IDE (free)

How to use
StringContains
in
org.hamcrest.text

Best Java code snippets using org.hamcrest.text.StringContains (Showing top 6 results out of 315)

origin: naver/ngrinder

  @Test
  public void testGroovyParseError() {
    GroovyClassLoader classLoader = new GroovyClassLoader();
    try {
      classLoader.parseClass("class WOW {{}");
      fail("Exception should be occurred.");
    } catch (Exception e) {
      assertThat(e.getMessage(), containsString("1: expecting '}'"));
    }
  }
}
origin: org.hamcrest/com.springsource.org.hamcrest

@Factory
public static Matcher<String> containsString(String substring) {
  return new StringContains(substring);
}
origin: org.nakedobjects.core/metamodel

@Override
public boolean matchesSafely(final String actual) {
  return super.matchesSafely(StringUtils.stripNewLines(actual));
}
origin: org.nakedobjects/metamodel

@Override
public boolean matchesSafely(final String actual) {
  return super.matchesSafely(StringUtils.stripNewLines(actual));
}
origin: org.apache.isis.core/commons

@Override
public boolean matchesSafely(final String actual) {
  return super.matchesSafely(StringUtils.stripNewLines(actual));
}
origin: org.hamcrest/com.springsource.org.hamcrest

public static org.hamcrest.Matcher<java.lang.String> containsString(java.lang.String substring) {
 return org.hamcrest.text.StringContains.containsString(substring);
}
org.hamcrest.textStringContains

Javadoc

Tests if the argument is a string that contains a substring.

Most used methods

  • matchesSafely
  • containsString
  • <init>

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now