Skip to content

Commit cfb2f98

Browse files
author
dhrsharm
committed
feat(print-cc): Adding test cases for Views classes
1 parent 0c79c9d commit cfb2f98

File tree

1 file changed

+41
-0
lines changed
  • bundles/af-core/src/test/java/com/adobe/cq/forms/core/components/views

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2+
~ Copyright 2025 Adobe
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 com.adobe.cq.forms.core.components.views;
17+
18+
import org.junit.Test;
19+
20+
import static org.junit.jupiter.api.Assertions.*;
21+
22+
public class ViewsTest {
23+
24+
@Test
25+
public void testPublish() {
26+
Views.Publish publish = new Views.Publish();
27+
assertNotNull(publish);
28+
}
29+
30+
@Test
31+
public void testAuthor() {
32+
Views.Author author = new Views.Author();
33+
assertTrue(author instanceof Views.Publish);
34+
}
35+
36+
@Test
37+
public void testDor() {
38+
Views.DoR dor = new Views.DoR();
39+
assertTrue(dor instanceof Views.Author);
40+
}
41+
}

0 commit comments

Comments
 (0)