1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.macro.container; |
21 |
|
|
22 |
|
import java.util.Map; |
23 |
|
|
24 |
|
import org.jmock.Expectations; |
25 |
|
import org.jmock.Mockery; |
26 |
|
import org.jmock.integration.junit4.JUnit4Mockery; |
27 |
|
import org.junit.runner.RunWith; |
28 |
|
import org.xwiki.rendering.test.integration.RenderingTestSuite; |
29 |
|
import org.xwiki.skinx.SkinExtension; |
30 |
|
import org.xwiki.test.jmock.MockingComponentManager; |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
@link |
35 |
|
|
36 |
|
@version |
37 |
|
@since |
38 |
|
|
39 |
|
@RunWith(RenderingTestSuite.class) |
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 2 |
Complexity Density: 0.33 |
|
40 |
|
public class IntegrationTests |
41 |
|
{ |
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
42 |
0 |
@RenderingTestSuite.Initialized... |
43 |
|
public void initialize(MockingComponentManager componentManager) throws Exception |
44 |
|
{ |
45 |
0 |
Mockery mockery = new JUnit4Mockery(); |
46 |
|
|
47 |
0 |
final SkinExtension ssfxMock = componentManager.registerMockComponent(mockery, SkinExtension.class, "ssfx"); |
48 |
|
|
49 |
0 |
mockery.checking(new Expectations() |
50 |
|
{ |
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
51 |
0 |
{... |
52 |
0 |
String cssPath = "uicomponents/container/columns.css"; |
53 |
0 |
allowing(ssfxMock).use(with(cssPath)); |
54 |
0 |
allowing(ssfxMock).use(with(cssPath), with(any(Map.class))); |
55 |
|
} |
56 |
|
}); |
57 |
|
} |
58 |
|
} |