package pl.edu.amu.wmi.bookapi; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.*; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.mongodb.core.*; import pl.edu.amu.wmi.bookapi.models.*; @SpringBootTest class BookapiApplicationTests { @Autowired MongoTemplate mongoTemplate; @Test void contextLoads() { mongoTemplate.save(new UserDocument("test", "test")); System.out.println(mongoTemplate.findAll(UserDocument.class)); } }