org.assertj.core.api.AbstractCharSequenceAssert Java Examples

The following examples show how to use org.assertj.core.api.AbstractCharSequenceAssert. 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: DateTimeConvertersTest.java    From metasfresh-webui-api-legacy with GNU General Public License v3.0 4 votes vote down vote up
private AbstractCharSequenceAssert<?, String> assertLocalDateToJson(final LocalDate localDate, final JSONDateConfig config)
{
	final String json = DateTimeConverters.toJson(localDate, config);
	return assertThat(json)
			.as("localDate=" + localDate + ", config=" + config);
}
 
Example #2
Source File: DateTimeConvertersTest.java    From metasfresh-webui-api-legacy with GNU General Public License v3.0 4 votes vote down vote up
private AbstractCharSequenceAssert<?, String> assertLocalTimeToJson(final LocalTime localTime, final JSONDateConfig config)
{
	final String json = DateTimeConverters.toJson(localTime, config);
	return assertThat(json)
			.as("zonedDateTime=" + localTime + ", config=" + config);
}
 
Example #3
Source File: DateTimeConvertersTest.java    From metasfresh-webui-api-legacy with GNU General Public License v3.0 4 votes vote down vote up
private AbstractCharSequenceAssert<?, String> assertZonedDateTimeToJson(final ZonedDateTime zonedDateTime, final ZoneId zoneId, final JSONDateConfig config)
{
	final String json = DateTimeConverters.toJson(zonedDateTime, zoneId, config);
	return assertThat(json)
			.as("zonedDateTime=" + zonedDateTime + ", zoneId=" + zoneId + ", config=" + config);
}
 
Example #4
Source File: DateTimeConvertersTest.java    From metasfresh-webui-api-legacy with GNU General Public License v3.0 4 votes vote down vote up
private AbstractCharSequenceAssert<?, String> assertInstantToJson(final Instant instant, final ZoneId zoneId, final JSONDateConfig config)
{
	final String json = DateTimeConverters.toJson(instant, zoneId, config);
	return assertThat(json)
			.as("instant=" + instant + ", zoneId=" + zoneId + ", config=" + config);
}
 
Example #5
Source File: DateTimeConvertersTest.java    From metasfresh-webui-api-legacy with GNU General Public License v3.0 4 votes vote down vote up
private AbstractCharSequenceAssert<?, String> assertZoneIdToJson(final ZoneId zoneId)
{
	final String json = DateTimeConverters.toJson(zoneId);
	return assertThat(json)
			.as("zoneId=" + zoneId);
}
 
Example #6
Source File: JsonPathAssert.java    From spring-cloud-open-service-broker with Apache License 2.0 4 votes vote down vote up
public AbstractCharSequenceAssert<?, String> hasStringAtPath(String path) {
	return Assertions.assertThat(actual.read(path, String.class));
}
 
Example #7
Source File: MilestoneReleaseLiveTest.java    From pnc with Apache License 2.0 4 votes vote down vote up
private AbstractCharSequenceAssert<?, String> assertLog(ProductMilestone milestone) {
    throw new UnsupportedOperationException("Use new REST API!");
    // ProductMilestone productMilestone = productMilestoneRepository.queryById(milestone.getId());
    // ProductMilestoneRelease release = releaseRepository.findLatestByMilestone(productMilestone);
    // return assertThat(release.getLog());
}
 
Example #8
Source File: AssertionsAdapter.java    From xmlunit with Apache License 2.0 4 votes vote down vote up
static AbstractCharSequenceAssert<?, String> assertThat(String actual) {
    return new StringAssert(actual);
}
 
Example #9
Source File: AbstractCalculationTest.java    From ehcache3 with Apache License 2.0 2 votes vote down vote up
/**
 * A little wrapper over {@code assertThat} that just mention that this what we expect from the test. So if the
 * expectation fails, it's probably the test that is wrong, not the implementation.
 *
 * @param actual actual value
 * @return an AssertJ assertion
 */
protected static AbstractCharSequenceAssert<?, String> expect(String actual) {
  return assertThat(actual);
}