| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.devacfr.maven.skins.reflow.snippet; |
| 17 |
|
|
| 18 |
|
import java.io.IOException; |
| 19 |
|
import org.junit.jupiter.api.Test; |
| 20 |
|
|
| |
|
| 80% |
Uncovered Elements: 2 (10) |
Complexity: 4 |
Complexity Density: 0,5 |
|
| 21 |
|
public class SnippetButtonTest extends BaseSnippetTest { |
| 22 |
|
|
| |
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0,5 |
1PASS
|
|
| 23 |
1 |
@Test... |
| 24 |
|
public void shouldDisplayButtonToolbar() throws Exception { |
| 25 |
1 |
verify((htmlSource) -> { |
| 26 |
1 |
try { |
| 27 |
1 |
return createParser().parse(config, htmlSource).html(); |
| 28 |
|
} catch (final IOException e) { |
| 29 |
0 |
throw new RuntimeException(e.getMessage(), e); |
| 30 |
|
} |
| 31 |
|
}, "html"); |
| 32 |
|
} |
| 33 |
|
|
| |
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 0,5 |
1PASS
|
|
| 34 |
1 |
@Test... |
| 35 |
|
public void shouldRenderGroupButton() throws Exception { |
| 36 |
1 |
verify((htmlSource) -> { |
| 37 |
1 |
try { |
| 38 |
1 |
return createParser().parse(config, htmlSource).html(); |
| 39 |
|
} catch (final IOException e) { |
| 40 |
0 |
throw new RuntimeException(e.getMessage(), e); |
| 41 |
|
} |
| 42 |
|
}, "html"); |
| 43 |
|
} |
| 44 |
|
} |