1
|
package eu.dnetlib.uoaadmintools;
|
2
|
|
3
|
import eu.dnetlib.uoaadmintools.dao.CommunityDAO;
|
4
|
import eu.dnetlib.uoaadmintools.dao.NotificationsDAO;
|
5
|
import eu.dnetlib.uoaadmintools.entities.Community;
|
6
|
import eu.dnetlib.uoaadmintools.entities.Notifications;
|
7
|
import org.junit.Test;
|
8
|
import org.junit.runner.RunWith;
|
9
|
import org.springframework.beans.factory.annotation.Autowired;
|
10
|
import org.springframework.boot.test.context.SpringBootTest;
|
11
|
import org.springframework.test.context.junit4.SpringRunner;
|
12
|
|
13
|
import java.util.List;
|
14
|
|
15
|
@RunWith(SpringRunner.class)
|
16
|
@SpringBootTest
|
17
|
public class CommunityTests {
|
18
|
|
19
|
@Autowired
|
20
|
private CommunityDAO communityDAO;
|
21
|
|
22
|
|
23
|
|
24
|
@Test
|
25
|
public void test() {
|
26
|
String id="egi";
|
27
|
Community community = communityDAO.findByPid(id);
|
28
|
// community.getPages()
|
29
|
|
30
|
|
31
|
}
|
32
|
|
33
|
@Test
|
34
|
public void remove() {
|
35
|
List <Community> communities = communityDAO.findAll();
|
36
|
for(Community com : communities){
|
37
|
|
38
|
}
|
39
|
|
40
|
}
|
41
|
|
42
|
}
|