2020-02-12 20:30:18 +01:00
|
|
|
package pl.edu.amu.wmi.bookapi;
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
2020-02-14 00:27:00 +01:00
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
2020-02-12 20:30:18 +01:00
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
2020-02-14 00:27:00 +01:00
|
|
|
import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
|
import pl.edu.amu.wmi.bookapi.models.UserDocument;
|
2020-02-12 20:30:18 +01:00
|
|
|
|
|
|
|
@SpringBootTest
|
|
|
|
class BookapiApplicationTests {
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
MongoTemplate mongoTemplate;
|
|
|
|
|
|
|
|
@Test
|
|
|
|
void contextLoads() {
|
|
|
|
System.out.println(mongoTemplate.findAll(UserDocument.class));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|