Java Code Examples for org.hamcrest.Matchers#instanceOf()
The following examples show how to use
org.hamcrest.Matchers#instanceOf() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VersionResourceResolverTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void shouldConfigureFixedPrefixAutomatically() throws Exception { this.resolver.addFixedVersionStrategy("fixedversion", "/js/**", "/css/**", "/fixedversion/css/**"); Matcher<VersionStrategy> matcher = Matchers.instanceOf(FixedVersionStrategy.class); assertThat(this.resolver.getStrategyMap().size(), is(4)); assertThat(this.resolver.getStrategyForPath("js/something.js"), matcher); assertThat(this.resolver.getStrategyForPath("fixedversion/js/something.js"), matcher); assertThat(this.resolver.getStrategyForPath("css/something.css"), matcher); assertThat(this.resolver.getStrategyForPath("fixedversion/css/something.css"), matcher); }
Example 2
Source File: VersionResourceResolverTests.java From java-technology-stack with MIT License | 5 votes |
@Test public void shouldConfigureFixedPrefixAutomatically() throws Exception { this.resolver.addFixedVersionStrategy("fixedversion", "/js/**", "/css/**", "/fixedversion/css/**"); Matcher<VersionStrategy> matcher = Matchers.instanceOf(FixedVersionStrategy.class); assertThat(this.resolver.getStrategyMap().size(), is(4)); assertThat(this.resolver.getStrategyForPath("js/something.js"), matcher); assertThat(this.resolver.getStrategyForPath("fixedversion/js/something.js"), matcher); assertThat(this.resolver.getStrategyForPath("css/something.css"), matcher); assertThat(this.resolver.getStrategyForPath("fixedversion/css/something.css"), matcher); }
Example 3
Source File: ReplicatorAppendEntriesTest.java From c5-replicator with Apache License 2.0 | 4 votes |
private Matcher<List<LogEntry>> anyList() { return Matchers.instanceOf(List.class); }
Example 4
Source File: HintViewAction.java From edittext-mask with MIT License | 4 votes |
@Override public Matcher<View> getConstraints() { return Matchers.instanceOf(TextView.class); }