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 OrderActionBeanTest {
23
24 // Test written by Diffblue Cover.
25 @Test
26 void getOrderListOutputNull() {
27
28 // Arrange
29 final OrderActionBean orderActionBean = new OrderActionBean();
30
31 // Act and Assert result
32 assertThat(orderActionBean.getOrderList()).isNull();
33
34 }
35
36 // Test written by Diffblue Cover.
37 @Test
38 void isShippingAddressRequiredOutputFalse() {
39
40 // Arrange
41 final OrderActionBean orderActionBean = new OrderActionBean();
42
43 // Act and Assert result
44 assertThat(orderActionBean.isShippingAddressRequired()).isFalse();
45
46 }
47
48 // Test written by Diffblue Cover.
49 @Test
50 void constructorOutputNotNull() {
51
52 // Act, creating object to test constructor
53 final OrderActionBean actual = new OrderActionBean();
54
55 // Assert result
56 assertThat(actual).isNotNull().isNotNull();
57 assertThat(actual.getContext()).isNull();
58
59 }
60
61 // Test written by Diffblue Cover.
62 @Test
63 void isConfirmedOutputFalse() {
64
65 // Arrange
66 final OrderActionBean orderActionBean = new OrderActionBean();
67
68 // Act and Assert result
69 assertThat(orderActionBean.isConfirmed()).isFalse();
70
71 }
72 }