1
|
package eu.dnetlib.enabling.is.sn;
|
2
|
|
3
|
import org.apache.commons.logging.Log;
|
4
|
import org.apache.commons.logging.LogFactory;
|
5
|
|
6
|
/**
|
7
|
* As a complementary approach w.r.t unit tests, this class is an extension of
|
8
|
* the default ISSN Service which creates a number of initial subscriptions so that we can play
|
9
|
* with some notifications.
|
10
|
*
|
11
|
* This class plays well with TestISStoreServiceImpl, which creates some profiles at startup time
|
12
|
* and schedules some automated mutations.
|
13
|
*
|
14
|
* @author marko
|
15
|
*
|
16
|
*/
|
17
|
public class TestISSNServiceImpl extends ISSNServiceImpl {
|
18
|
/**
|
19
|
* logger.
|
20
|
*/
|
21
|
private static final Log log = LogFactory.getLog(TestISSNServiceImpl.class); // NOPMD by marko on 11/24/08 5:02 PM
|
22
|
|
23
|
/**
|
24
|
* {@inheritDoc}
|
25
|
* @see eu.dnetlib.enabling.tools.AbstractBaseService#start()
|
26
|
*/
|
27
|
@Override
|
28
|
public void start() {
|
29
|
super.start();
|
30
|
//TODO CREATE MOCK FOR ENDPOINT
|
31
|
// try {
|
32
|
// subscribe(getEprBuilder().getEndpointReference(getEndpoint()), "CREATE/TestResourceType/*", 0);
|
33
|
// } catch (ISSNException e) {
|
34
|
// log.fatal("cannot subscribe test subscriptions", e);
|
35
|
// }
|
36
|
}
|
37
|
|
38
|
}
|