Revision 45488
Added by Claudio Atzori over 7 years ago
ExistDatabaseTest.java | ||
---|---|---|
438 | 438 |
*/ |
439 | 439 |
@Test |
440 | 440 |
public void testSetExistTrigger() throws XMLDBException { |
441 |
final Map<String, String> params = new HashMap<String, String>();
|
|
441 |
final Map<String, String> params = new HashMap<>(); |
|
442 | 442 |
params.put("listenerBean", "pippo"); |
443 | 443 |
|
444 | 444 |
database.createCollection(DB_TEST); |
445 |
edb.setExistTrigger(TestExistTrigger.class, DB_TEST, Arrays.asList(new String[] { "store", "update", "delete" }), params);
|
|
445 |
edb.setExistTrigger(TestExistTrigger.class, DB_TEST, Arrays.asList("store", "update", "delete"), params);
|
|
446 | 446 |
|
447 | 447 |
// assertNotNull("check that the conf is stored", database.read(ExistDatabase.COLLECTION_XCONF, DB_ROOT + "/system/config" + DB_TEST)); |
448 | 448 |
|
... | ... | |
642 | 642 |
|
643 | 643 |
database.registerTrigger(trigger, DB_ROOT); |
644 | 644 |
|
645 |
final List<SimpleParallelJob> threads = new ArrayList<SimpleParallelJob>(); // NOPMD
|
|
645 |
final List<SimpleParallelJob> threads = new ArrayList<>(); // NOPMD |
|
646 | 646 |
for (int i = 0; i < PAR_TIMES; i++) |
647 | 647 |
threads.add(new SimpleParallelJob(i)); // NOPMD |
648 | 648 |
for (Thread thread : threads) { // NOPMD |
Also available in: Unified diff
using updated mockito version