Project

General

Profile

« Previous | Next » 

Revision 53266

Fix configuration update method not creating duplicates, add check for no user information

View differences:

NotificationsTests.java
1 1
package eu.dnetlib.uoaadmintools;
2 2

  
3 3
import eu.dnetlib.uoaadmintools.dao.*;
4
import eu.dnetlib.uoaadmintools.entities.Community;
4 5
import eu.dnetlib.uoaadmintools.entities.Notifications;
5 6
import eu.dnetlib.uoaadmintools.entities.Page;
6 7
import org.junit.Test;
......
22 23
	@Autowired
23 24
	private NotificationsDAO notificationsDAO;
24 25

  
25

  
26 26
	@Test
27 27
	public void test() {
28
		String mail = "argirokokogiannaki@gmail.com";
29
		String id="rda";
28
		String mail = "sofie.mpl@gmail.com";
29
		String id="ni";
30 30
			System.out.println(notificationsDAO.findByCommunityPid(id));
31 31

  
32 32
		Notifications notifications = notificationsDAO.findByManagerEmailAndCommunityPid(mail	, id);
......
46 46

  
47 47
	}
48 48

  
49
	@Test
50
	public void remove() {
51
		List <Community> communities = communityDAO.findAll();
52
		for(Community com : communities){
53
			List <Notifications> notificationsList = notificationsDAO.findByCommunityPid(com.getPid());
54
			for(Notifications notifications:notificationsList){
55
//				notificationsDAO.delete(notifications.getId());
56
			}
57
		}
58

  
59
	}
60

  
49 61
}

Also available in: Unified diff