本文整理了Java中org.assertj.core.api.AbstractCharSequenceAssert.isIn()
方法的一些代码示例,展示了AbstractCharSequenceAssert.isIn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractCharSequenceAssert.isIn()
方法的具体详情如下:
包路径:org.assertj.core.api.AbstractCharSequenceAssert
类名称:AbstractCharSequenceAssert
方法名:isIn
暂无
代码示例来源:origin: SonarSource/sonarqube
@Test
public void test_attributes() {
ProtobufSystemInfo.Section section = underTest.toProtobuf();
assertThat(attribute(section, "Nodes").getLongValue()).isGreaterThan(0);
assertThat(attribute(section, "State").getStringValue()).isIn("RED", "YELLOW", "GREEN");
}
}
代码示例来源:origin: kiegroup/jbpm
variableValues.add(var.getValue());
variableIds.add(var.getVariableId());
Assertions.assertThat(var.getOldValue()).isIn("", " ", null);
Assertions.assertThat(var.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId());
Assertions.assertThat(var.getProcessId()).isEqualTo(processInstance.getProcessId());
代码示例来源:origin: kiegroup/jbpm
Assertions.assertThat(var.getOldValue()).isIn("", " ", null);
Assertions.assertThat(var.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId());
Assertions.assertThat(var.getProcessId()).isEqualTo(processInstance.getProcessId());
代码示例来源:origin: kiegroup/jbpm
variableIds.add(var.getVariableId());
Assertions.assertThat(var.getOldValue()).isIn("", " ", null);
Assertions.assertThat(var.getProcessInstanceId()).isEqualTo(processInstance.getProcessInstanceId());
Assertions.assertThat(var.getProcessId()).isEqualTo(processInstance.getProcessId());
代码示例来源:origin: io.prestosql.benchto/benchto-driver
@Test
public void getAllBenchmarks_activeVariables_with_regex()
throws IOException
{
withActiveVariables("format=(.rc)|(tx.)");
assertLoadedBenchmarksCount(4).forEach(benchmark ->
assertThat(benchmark.getVariables().get("format")).isIn("orc", "txt"));
}
代码示例来源:origin: com.teradata.benchto/benchto-driver
@Test
public void getAllBenchmarks_activeVariables_with_regex()
throws IOException
{
withActiveVariables("format=(.rc)|(tx.)");
assertLoadedBenchmarksCount(4).forEach(benchmark ->
assertThat(benchmark.getVariables().get("format")).isIn("orc", "txt")
);
}
代码示例来源:origin: v-ladynev/fluent-hibernate
@Test
public void testWithoutPrefixes() {
Metadata metadata = StrategyTestUtils.createMetadata(serviceRegistry,
new Hibernate5NamingStrategy(), ENTITIES);
Table books = getJoinTable(metadata, "ownBooks");
Table coauthorBooks = getJoinTable(metadata, "coauthorBooks");
assertThat(books.getName()).isIn("authors_books", "authors_books_own_books");
assertThat(coauthorBooks.getName()).isIn("authors_books", "authors_books_coauthor_books");
assertThat(StrategyTestUtils.getColumNames(books)).containsOnly("fk_author",
"fk_own_books");
assertThat(StrategyTestUtils.getColumNames(coauthorBooks)).containsOnly("fk_author",
"fk_coauthor_books");
}
代码示例来源:origin: org.jbpm/jbpm-audit
variableValues.add(var.getValue());
variableIds.add(var.getVariableId());
Assertions.assertThat(var.getOldValue()).isIn("", " ", null);
Assertions.assertThat(var.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId());
Assertions.assertThat(var.getProcessId()).isEqualTo(processInstance.getProcessId());
代码示例来源:origin: segmentio/analytics-android
@Test
public void enumDeserialization() throws Exception {
valueMap.put("value1", MyEnum.VALUE1);
valueMap.put("value2", MyEnum.VALUE2);
String json = cartographer.toJson(valueMap);
// todo: the ordering may be different on different versions of Java
assertThat(json)
.isIn(
"{\"value2\":\"VALUE2\",\"value1\":\"VALUE1\"}",
"{\"value1\":\"VALUE1\",\"value2\":\"VALUE2\"}");
valueMap = new ValueMap(cartographer.fromJson("{\"value1\":\"VALUE1\",\"value2\":\"VALUE2\"}"));
assertThat(valueMap) //
.contains(MapEntry.entry("value1", "VALUE1")) //
.contains(MapEntry.entry("value2", "VALUE2"));
assertThat(valueMap.getEnum(MyEnum.class, "value1")).isEqualTo(MyEnum.VALUE1);
assertThat(valueMap.getEnum(MyEnum.class, "value2")).isEqualTo(MyEnum.VALUE2);
}
代码示例来源:origin: v-ladynev/fluent-hibernate
@Test
public void testRestrictLength() {
StrategyOptions options = StrategyOptions.builder().tablePrefix("table").restrictLength(24)
.restrictColumnNames(false).restrictConstraintNames(false).build();
Metadata metadata = StrategyTestUtils.createMetadata(serviceRegistry,
new Hibernate5NamingStrategy(options), ENTITIES);
Table books = getJoinTable(metadata, "ownBooks");
Table coauthorBooks = getJoinTable(metadata, "coauthorBooks");
assertThat(books.getName()).isIn("table_authors_books", "table_authrs_bks_own_bks");
assertThat(coauthorBooks.getName()).isIn("table_authors_books", "table_athrs_bks_cthr_bks");
}
代码示例来源:origin: v-ladynev/fluent-hibernate
@Test
public void testWithPrefixes() {
Metadata metadata = StrategyTestUtils
.createMetadata(serviceRegistry,
new Hibernate5NamingStrategy(
StrategyOptions.builder().tablePrefix("table").build()),
ENTITIES);
Table books = getJoinTable(metadata, "ownBooks");
Table coauthorBooks = getJoinTable(metadata, "coauthorBooks");
assertThat(books.getName()).isIn("table_authors_books", "table_authors_books_own_books");
assertThat(coauthorBooks.getName()).isIn("table_authors_books",
"table_authors_books_coauthor_books");
assertThat(StrategyTestUtils.getColumNames(books)).containsOnly("fk_author",
"fk_own_books");
assertThat(StrategyTestUtils.getColumNames(coauthorBooks)).containsOnly("fk_author",
"fk_coauthor_books");
}
代码示例来源:origin: org.jbpm/jbpm-audit
Assertions.assertThat(var.getOldValue()).isIn("", " ", null);
Assertions.assertThat(var.getProcessInstanceId().longValue()).isEqualTo(processInstance.getId());
Assertions.assertThat(var.getProcessId()).isEqualTo(processInstance.getProcessId());
代码示例来源:origin: org.jbpm/jbpm-audit
variableIds.add(var.getVariableId());
Assertions.assertThat(var.getOldValue()).isIn("", " ", null);
Assertions.assertThat(var.getProcessInstanceId()).isEqualTo(processInstance.getProcessInstanceId());
Assertions.assertThat(var.getProcessId()).isEqualTo(processInstance.getProcessId());
代码示例来源:origin: KrailOrg/krail
.getDescription()).isIn("Confirm this Value is Ok");
assertThat(testObject.getNewButton()
.getLocale()).isEqualTo(Locale.UK);
代码示例来源:origin: io.vertx/vertx-service-discovery
await().untilAtomic(done, is(true));
assertThat(match.get()).isNotNull();
assertThat(match.get().getName()).isIn("foo", "baz");
代码示例来源:origin: vert-x3/vertx-service-discovery
await().untilAtomic(done, is(true));
assertThat(match.get()).isNotNull();
assertThat(match.get().getName()).isIn("foo", "baz");
代码示例来源:origin: hibernate/hibernate-search
assertThat( results ).extracting( "name" ).containsOnly( "A AA AAA", "B BA" );
assertThat( byteman.consumeNextRecordedEvent() ).isIn( AAA.class.getName(), BA.class.getName() );
内容来源于网络,如有侵权,请联系作者删除!