43 lines
907 B
Java
43 lines
907 B
Java
package eu.dnetlib.uoaadmintools;
|
|
|
|
import eu.dnetlib.uoaadmintools.dao.CommunityDAO;
|
|
import eu.dnetlib.uoaadmintools.dao.NotificationsDAO;
|
|
import eu.dnetlib.uoaadmintools.entities.Community;
|
|
import eu.dnetlib.uoaadmintools.entities.Notifications;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
import java.util.List;
|
|
|
|
@RunWith(SpringRunner.class)
|
|
@SpringBootTest
|
|
public class CommunityTests {
|
|
|
|
@Autowired
|
|
private CommunityDAO communityDAO;
|
|
|
|
|
|
|
|
@Test
|
|
public void test() {
|
|
String id="egi";
|
|
Community community = communityDAO.findByPid(id);
|
|
// community.getPages()
|
|
|
|
|
|
}
|
|
|
|
@Test
|
|
public void remove() {
|
|
List <Community> communities = communityDAO.findAll();
|
|
for(Community com : communities){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|