blob: 14a6dc3c2d5647f81e1caff5311fee213507f043 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.docproc;
import org.junit.Test;
/**
* @author Einar M R Rosenvinge
*/
@SuppressWarnings("removal") // TODO Vespa 8: remove
public class EmptyProcessingTestCase {
@Test
public void emptyProcessing() {
DocprocService service = new DocprocService("juba");
DocumentProcessor processor = new IncrementingDocumentProcessor();
CallStack stack = new CallStack("juba");
stack.addLast(processor);
service.setCallStack(stack);
service.setInService(true);
Processing proc = new Processing();
proc.setServiceName("juba");
service.process(proc);
while (service.doWork()) { }
}
}
|