1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.internal.filter.input; |
21 |
|
|
22 |
|
import java.io.IOException; |
23 |
|
|
24 |
|
import org.junit.Test; |
25 |
|
import org.xwiki.filter.FilterException; |
26 |
|
import org.xwiki.filter.instance.input.DocumentInstanceInputProperties; |
27 |
|
import org.xwiki.filter.instance.output.DocumentInstanceOutputProperties; |
28 |
|
import org.xwiki.test.annotation.AllComponents; |
29 |
|
|
30 |
|
import com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStream; |
31 |
|
|
32 |
|
|
33 |
|
@link |
34 |
|
|
35 |
|
@version |
36 |
|
|
37 |
|
@AllComponents |
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 1 |
Complexity Density: 0.12 |
|
38 |
|
public class DocumentInstanceInputFilterStreamTest extends AbstractInstanceInputFilterStreamTest |
39 |
|
{ |
40 |
|
|
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
1PASS
|
|
42 |
1 |
@Test... |
43 |
|
public void testImportDocumentsPreserveVersion() throws FilterException, IOException |
44 |
|
{ |
45 |
1 |
DocumentInstanceOutputProperties outputProperties = new DocumentInstanceOutputProperties(); |
46 |
1 |
outputProperties.setVersionPreserved(true); |
47 |
1 |
outputProperties.setVerbose(false); |
48 |
|
|
49 |
1 |
DocumentInstanceInputProperties inputProperties = new DocumentInstanceInputProperties(); |
50 |
1 |
inputProperties.setWithRevisions(false); |
51 |
1 |
inputProperties.setWithJRCSRevisions(false); |
52 |
1 |
inputProperties.setVerbose(false); |
53 |
|
|
54 |
1 |
assertXML("document1", outputProperties, inputProperties); |
55 |
|
} |
56 |
|
} |