Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TAKETODAY committed Dec 20, 2023
1 parent 587c4a7 commit df4cef1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.junit.jupiter.api.Test;

import java.lang.reflect.Method;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.Date;
import java.util.Map;

import cn.taketoday.core.MethodParameter;
Expand Down Expand Up @@ -62,7 +62,7 @@ class DefaultErrorAttributesTests {
void includeTimeStamp() {
Map<String, Object> attributes = this.errorAttributes.getErrorAttributes(this.webRequest,
ErrorAttributeOptions.defaults());
assertThat(attributes.get("timestamp")).isInstanceOf(Date.class);
assertThat(attributes.get("timestamp")).isInstanceOf(LocalDateTime.class);
}

@Test
Expand Down

0 comments on commit df4cef1

Please sign in to comment.