| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
package org.devacfr.maven.skins.reflow.snippet; |
| 20 |
|
|
| 21 |
|
import java.io.IOException; |
| 22 |
|
|
| 23 |
|
import com.google.common.io.CharSource; |
| 24 |
|
import org.devacfr.testing.jupiter.PlexusTestCase; |
| 25 |
|
import org.junit.jupiter.api.Test; |
| 26 |
|
|
| |
|
| 83,3% |
Uncovered Elements: 2 (12) |
Complexity: 4 |
Complexity Density: 0,4 |
|
| 27 |
|
public class TemplateMacroTest extends PlexusTestCase { |
| 28 |
|
|
| |
|
| 80% |
Uncovered Elements: 1 (5) |
Complexity: 2 |
Complexity Density: 0,4 |
1PASS
|
|
| 29 |
1 |
@Test... |
| 30 |
|
public void shouldConvert() { |
| 31 |
1 |
final PartialTemplateMacro macro = new PartialTemplateMacro(); |
| 32 |
|
|
| 33 |
1 |
verify(actual -> { |
| 34 |
1 |
try { |
| 35 |
1 |
return macro.convertSnippet(CharSource.wrap(actual)); |
| 36 |
|
} catch (final IOException e) { |
| 37 |
0 |
throw new RuntimeException(e.getMessage(), e); |
| 38 |
|
} |
| 39 |
|
}, "html"); |
| 40 |
|
} |
| 41 |
|
|
| |
|
| 80% |
Uncovered Elements: 1 (5) |
Complexity: 2 |
Complexity Density: 0,4 |
1PASS
|
|
| 42 |
1 |
@Test... |
| 43 |
|
public void shouldConvertHtmlSnippet() { |
| 44 |
1 |
final PartialTemplateMacro macro = new PartialTemplateMacro(); |
| 45 |
1 |
verify(actual -> { |
| 46 |
1 |
try { |
| 47 |
1 |
return macro.convertSnippet(CharSource.wrap(actual)); |
| 48 |
|
} catch (final IOException e) { |
| 49 |
0 |
throw new RuntimeException(e.getMessage(), e); |
| 50 |
|
} |
| 51 |
|
}, "html"); |
| 52 |
|
} |
| 53 |
|
} |