@@ -0,0 +1,2054 @@
+package com.dreamchain.skeleton.dao.impl;%0A%0Aimport com.dreamchain.skeleton.model.Customer;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0Aimport java.util.List;%0A%0A@Transactional%0Apublic class CustomerDaoImplTest extends DaoTest %7B%0A%0A    @Autowired%0A    CustomerDaoImpl customerDaoImpl;%0A%0A    @Test%0A    public void all_fields_are_persisted() %7B%0A        Customer customer=new Customer();%0A        customer.setName(%22test%22);%0A        customer.setNid(%221234567890123%22);%0A        customer.setPhone(%2212345678901%22);%0A        customer.setAddress(%22ssfhshfhsdgfshgfh%22);%0A        customer.setEmail(%22babu313133@gmail.com%22);%0A        customer.setCustomerCode(%22TE0001%22);%0A        customerDaoImpl.save(customer);%0A        Customer newCustomer=customerDaoImpl.findByNid(%221234567890123%22);%0A%0A%0A        Assert.assertEquals(%22test%22, newCustomer.getName());%0A        Assert.assertEquals(%22babu313133@gmail.com%22, newCustomer.getEmail());%0A        Assert.assertEquals(%22TE0001%22, newCustomer.getCustomerCode());%0A        Assert.assertEquals(%2212345678901%22, newCustomer.getPhone());%0A        Assert.assertEquals(%22ssfhshfhsdgfshgfh%22, newCustomer.getAddress());%0A%0A        Customer obj=newCustomer;%0A        obj.setName(%22Name2%22);%0A        obj.setNid(%221234567890124%22);%0A%0A        customerDaoImpl.remove(newCustomer);%0A        customerDaoImpl.update(obj);%0A%0A        newCustomer=customerDaoImpl.findByNid(%221234567890124%22);%0A%0A        Assert.assertEquals(%22Name2%22, newCustomer.getName());%0A    %7D%0A%0A%0A    @Test%0A    public void loadCustomerLIst()%7B%0A        Customer customer=new Customer();%0A        customer.setName(%22test%22);%0A        customer.setNid(%221234567890123%22);%0A        customer.setPhone(%2212345678901%22);%0A        customer.setAddress(%22ssfhshfhsdgfshgfh%22);%0A        customer.setEmail(%22babu313133@gmail.com%22);%0A        customer.setCustomerCode(%22TE0001%22);%0A        customerDaoImpl.save(customer);%0A        List%3CCustomer%3E lstUser=customerDaoImpl.findAll();%0A        Assert.assertNotNull(lstUser);%0A    %7D%0A%0A%7D%0A

Create order functionality