blob: e7d60c2d363a20b688dfd9d1e5993d5bc40a2648 (
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
|
// Copyright 2017 Yahoo Holdings. 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 <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
*/
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()) { }
}
}
|