View Javadoc
1   /*
2    *    Copyright 2010-2022 the original author or authors.
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    *       https://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.mybatis.jpetstore.web.actions;
17  
18  import static org.assertj.core.api.Assertions.assertThat;
19  
20  import org.junit.jupiter.api.Test;
21  
22  class CatalogActionBeanTest {
23  
24    @Test
25    void getItemListOutputNull() {
26  
27      // Arrange
28      final CatalogActionBean catalogActionBean = new CatalogActionBean();
29  
30      // Act and Assert result
31      assertThat(catalogActionBean.getItemList()).isNull();
32  
33    }
34  
35    // Test written by Diffblue Cover.
36    @Test
37    void getProductListOutputNull() {
38  
39      // Arrange
40      final CatalogActionBean catalogActionBean = new CatalogActionBean();
41  
42      // Act and Assert result
43      assertThat(catalogActionBean.getProductList()).isNull();
44  
45    }
46  
47    // Test written by Diffblue Cover.
48    @Test
49    void getCategoryListOutputNull() {
50  
51      // Arrange
52      final CatalogActionBean catalogActionBean = new CatalogActionBean();
53  
54      // Act and Assert result
55      assertThat(catalogActionBean.getCategoryList()).isNull();
56  
57    }
58  
59    // Test written by Diffblue Cover.
60    @Test
61    void getItemOutputNull() {
62  
63      // Arrange
64      final CatalogActionBean catalogActionBean = new CatalogActionBean();
65  
66      // Act and Assert result
67      assertThat(catalogActionBean.getItem()).isNull();
68  
69    }
70  
71    // Test written by Diffblue Cover.
72    @Test
73    void getProductOutputNull() {
74  
75      // Arrange
76      final CatalogActionBean catalogActionBean = new CatalogActionBean();
77  
78      // Act and Assert result
79      assertThat(catalogActionBean.getProduct()).isNull();
80  
81    }
82  
83    // Test written by Diffblue Cover.
84    @Test
85    void getCategoryOutputNull() {
86  
87      // Arrange
88      final CatalogActionBean catalogActionBean = new CatalogActionBean();
89  
90      // Act and Assert result
91      assertThat(catalogActionBean.getCategory()).isNull();
92  
93    }
94  
95    // Test written by Diffblue Cover.
96    @Test
97    void getItemIdOutputNull() {
98  
99      // Arrange
100     final CatalogActionBean catalogActionBean = new CatalogActionBean();
101 
102     // Act and Assert result
103     assertThat(catalogActionBean.getItemId()).isNull();
104 
105   }
106 
107   // Test written by Diffblue Cover.
108   @Test
109   void getProductIdOutputNull() {
110 
111     // Arrange
112     final CatalogActionBean catalogActionBean = new CatalogActionBean();
113 
114     // Act and Assert result
115     assertThat(catalogActionBean.getProductId()).isNull();
116 
117   }
118 
119   // Test written by Diffblue Cover.
120   @Test
121   void getCategoryIdOutputNull() {
122 
123     // Arrange
124     final CatalogActionBean catalogActionBean = new CatalogActionBean();
125 
126     // Act and Assert result
127     assertThat(catalogActionBean.getCategoryId()).isNull();
128 
129   }
130 
131   // Test written by Diffblue Cover.
132   @Test
133   void getKeywordOutputNull() {
134 
135     // Arrange
136     final CatalogActionBean catalogActionBean = new CatalogActionBean();
137 
138     // Act and Assert result
139     assertThat(catalogActionBean.getKeyword()).isNull();
140 
141   }
142 
143   // Test written by Diffblue Cover.
144   @Test
145   void constructorOutputNotNull() {
146 
147     // Act, creating object to test constructor
148     final CatalogActionBean actual = new CatalogActionBean();
149 
150     // Assert result
151     assertThat(actual).isNotNull();
152     assertThat(actual.getContext()).isNull();
153 
154   }
155 }