org.assertj.threeten.api.Assertions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-threetenbp Show documentation
Show all versions of assertj-threetenbp Show documentation
AssertJ ThreeTen is a library of assertions specific to the ThreeTen backport project (JSR-310 for Java 7)
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright 2012-2014 the original author or authors.
*/
package org.assertj.threeten.api;
import org.threeten.bp.LocalDateTime;
import org.threeten.bp.ZonedDateTime;
/**
* The entry point for all new Date & Time API from Java 8 assertions.
*
* @author Joel Costigliola
* @author Paweł Stawicki
* @author Marcin Zajączkowski
*/
public class Assertions {
public static ZonedDateTimeAssert assertThat(ZonedDateTime date) {
return new ZonedDateTimeAssert(ZonedDateTimeAssert.class, date);
}
public static LocalDateTimeAssert assertThat(LocalDateTime localDateTime) {
return new LocalDateTimeAssert(LocalDateTimeAssert.class, localDateTime);
}
/** Creates a new {@link Assertions}
. */
protected Assertions() {
// empty
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy