Skip to content

Conversation

wonwoo
Copy link
Contributor

@wonwoo wonwoo commented Mar 2, 2019

I think @jsontest is not only Jackson.

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
    </dependency>
</dependencies>

No dependency Jackson.

@RunWith(SpringRunner.class)
@JsonTest
public class SpringBootJsontestApplicationTests {

    @Autowired
    private GsonTester<VehicleDetails> json;
    ...
}

Error Message
java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/Module

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 2, 2019
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 4, 2019
@snicoll snicoll added this to the 1.5.20 milestone Mar 4, 2019
@snicoll snicoll self-assigned this Mar 4, 2019
@snicoll snicoll changed the title @JsonTest is not only Jackson. Permit use of @JsonTest without Jackson Mar 4, 2019
snicoll pushed a commit that referenced this pull request Mar 4, 2019
snicoll added a commit that referenced this pull request Mar 4, 2019
* pr/16070:
  Polish "Permit use of @jsontest without Jackson"
  Permit use of @jsontest without Jackson
@snicoll snicoll closed this in 329a690 Mar 4, 2019
@snicoll
Copy link
Member

snicoll commented Mar 4, 2019

@wonwoo good catch, thank you very much for the PR. This is now merged as of 1.5.x all the way down to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants