Project

General

Profile

« Previous | Next » 

Revision 47869

fixed test

View differences:

modules/cnr-mongo-mdstore/trunk/src/test/java/eu/dnetlib/data/mdstore/modular/mongodb/MDStoreTransactionManagerTest.java
124 124

  
125 125
		final MDStore newMdstore = dao.getMDStore(currentId);
126 126

  
127
		new Thread(new Runnable() {
128

  
129
			@Override
130
			public void run() {
131
				List<String> dataInput = newMdstore.deliver("", "", null).getResult(0, 10);
127
		new Thread(() -> {
128
			List<String> dataInput = null;
129
			try {
130
				dataInput = newMdstore.deliver("", "", null).getResult(0, 10);
132 131
				for (int i = 0; i < 10; i++) {
133 132
					try {
134 133
						Thread.sleep(1000);
......
138 137
					}
139 138
					System.out.println(dataInput.get(i));
140 139
				}
141

  
140
			} catch (MDStoreServiceException e) {
141
				e.printStackTrace();
142 142
			}
143 143
		}).start();
144 144

  

Also available in: Unified diff