1. Project Clover database mar. janv. 20 2026 12:32:22 CET
  2. Package org.devacfr.maven.skins.reflow.snippet

File SnippetButtonTest.java

 

Code metrics

0
8
2
1
44
25
4
0,5
4
2
2

Classes

Class Line # Actions
SnippetButtonTest 21 8 0% 4 2
0.880%
 

Contributing tests

This file is covered by 2 tests. .

Source view

1    /*
2    * Copyright 2012-2025 Christophe Friederich
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10    * Unless required by applicable law or agreed to in writing, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16    package org.devacfr.maven.skins.reflow.snippet;
17   
18    import java.io.IOException;
19    import org.junit.jupiter.api.Test;
20   
 
21    public class SnippetButtonTest extends BaseSnippetTest {
22   
 
23  1 toggle @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   
 
34  1 toggle @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    }