We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Bean public GenericService testApi() { ReferenceConfig<GenericService> config = new ReferenceConfig<>(); config.setInterface("com.xxx.TestApi"); config.setGeneric("true"); //... return config.get() } @Autowired private TestApi testApi; @Test void testLocaDateTime() { Person obj = testApi.testApiQueryMethod(); }
Unit testing for reproducible problems
@Test public void testJava8Time() { Object localDateTimeGen = PojoUtils.generalize(LocalDateTime.now()); Object localDateTime = PojoUtils.realize(localDateTimeGen, LocalDateTime.class); assertEquals(localDateTimeGen, localDateTime.toString()); Object localDateGen = PojoUtils.generalize(LocalDate.now()); Object localDate = PojoUtils.realize(localDateGen, LocalDate.class); assertEquals(localDateGen, localDate.toString()); Object localTimeGen = PojoUtils.generalize(LocalTime.now()); Object localTime = PojoUtils.realize(localTimeGen, LocalTime.class); assertEquals(localTimeGen, localTime.toString()); }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
Steps to reproduce this issue
Unit testing for reproducible problems
The text was updated successfully, but these errors were encountered: