/**
 *    Copyright 2010-2019 the original author or authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.mybatis.jpetstore.web.actions;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.Test;

class OrderActionBeanTest {

   // Test written by Diffblue Cover.
   @Test
   void getOrderListOutputNull() {

   // Arrange
   final OrderActionBean orderActionBean = new OrderActionBean();

   // Act and Assert result
   assertThat(orderActionBean.getOrderList()).isNull();

   }

   // Test written by Diffblue Cover.
   @Test
   void isShippingAddressRequiredOutputFalse() {

   // Arrange
   final OrderActionBean orderActionBean = new OrderActionBean();

   // Act and Assert result
   assertThat(orderActionBean.isShippingAddressRequired()).isFalse();

   }

   // Test written by Diffblue Cover.
   @Test
   void constructorOutputNotNull() {

   // Act, creating object to test constructor
   final OrderActionBean actual = new OrderActionBean();

   // Assert result
   assertThat(actual).isNotNull().isNotNull();
   assertThat(actual.getContext()).isNull();

   }

   // Test written by Diffblue Cover.
   @Test
   void isConfirmedOutputFalse() {

   // Arrange
   final OrderActionBean orderActionBean = new OrderActionBean();

   // Act and Assert result
   assertThat(orderActionBean.isConfirmed()).isFalse();

   }
}

@@ -809,25 +809,24 @@
 anTest %7B%0A%0A  
- 
 // Test writ
@@ -846,32 +846,30 @@
 ue Cover.%0A  
- 
 @Test%0A
- 
   void getOr
@@ -886,32 +886,33 @@
 putNull() %7B%0A%0A   
+ 
 // Arrange%0A   fi
@@ -898,32 +898,33 @@
 %0A    // Arrange%0A
+ 
    final OrderAc
@@ -969,32 +969,33 @@
 tionBean();%0A%0A   
+ 
 // Act and Asser
@@ -995,32 +995,33 @@
 d Assert result%0A
+ 
    assertThat(or
@@ -1055,37 +1055,35 @@
 )).isNull();%0A%0A  
- 
 %7D%0A%0A
- 
   // Test writte
@@ -1101,32 +1101,30 @@
 ue Cover.%0A  
- 
 @Test%0A
- 
   void isShi
@@ -1155,32 +1155,33 @@
 utFalse() %7B%0A%0A   
+ 
 // Arrange%0A   fi
@@ -1167,32 +1167,33 @@
 %0A    // Arrange%0A
+ 
    final OrderAc
@@ -1238,32 +1238,33 @@
 tionBean();%0A%0A   
+ 
 // Act and Asser
@@ -1264,32 +1264,33 @@
 d Assert result%0A
+ 
    assertThat(or
@@ -1342,29 +1342,27 @@
 False();%0A%0A  
- 
 %7D%0A%0A
- 
   // Test wr
@@ -1384,32 +1384,30 @@
 ue Cover.%0A  
- 
 @Test%0A
- 
   void const
@@ -1427,24 +1427,25 @@
 otNull() %7B%0A%0A
+ 
    // Act, c
@@ -1479,16 +1479,17 @@
 tructor%0A
+ 
    final
@@ -1537,24 +1537,25 @@
 Bean();%0A%0A   
+ 
 // Assert re
@@ -1551,32 +1551,33 @@
 / Assert result%0A
+ 
    assertThat(ac
@@ -1606,24 +1606,25 @@
 tNull();%0A   
+ 
 assertThat(a
@@ -1658,17 +1658,15 @@
 );%0A%0A
- 
   %7D%0A%0A  
- 
 // T
@@ -1696,17 +1696,16 @@
  Cover.%0A
- 
   @Test%0A
@@ -1706,17 +1706,16 @@
 @Test%0A  
- 
 void isC
@@ -1739,16 +1739,17 @@
 se() %7B%0A%0A
+ 
    // Ar
@@ -1757,16 +1757,17 @@
 ange%0A   
+ 
 final Or
@@ -1822,16 +1822,17 @@
 ean();%0A%0A
+ 
    // Ac
@@ -1854,16 +1854,17 @@
 sult%0A   
+ 
 assertTh
@@ -1909,15 +1909,14 @@
 lse();%0A%0A
- 
   %7D%0A%7D%0A

Apply formatter