Revision 42659
Added by Sandro La Bruzzo almost 8 years ago
TestISSNServiceImpl.java | ||
---|---|---|
3 | 3 |
import org.apache.commons.logging.Log; |
4 | 4 |
import org.apache.commons.logging.LogFactory; |
5 | 5 |
|
6 |
import eu.dnetlib.rmi.enabling.ISSNException; |
|
7 |
|
|
8 | 6 |
/** |
9 | 7 |
* As a complementary approach w.r.t unit tests, this class is an extension of |
10 | 8 |
* the default ISSN Service which creates a number of initial subscriptions so that we can play |
... | ... | |
29 | 27 |
@Override |
30 | 28 |
public void start() { |
31 | 29 |
super.start(); |
32 |
|
|
33 |
try { |
|
34 |
subscribe(getEprBuilder().getEndpointReference(getEndpoint()), "CREATE/TestResourceType/*", 0); |
|
35 |
} catch (ISSNException e) { |
|
36 |
log.fatal("cannot subscribe test subscriptions", e); |
|
37 |
} |
|
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 |
// }
|
|
38 | 36 |
} |
39 | 37 |
|
40 | 38 |
} |
Also available in: Unified diff
added light-ui