@@ -0,0 +1,2635 @@
+package com.minds.servo.test;%0A%0Aimport java.sql.Timestamp;%0Aimport java.util.Calendar;%0Aimport java.util.List;%0A%0Aimport org.joda.time.DateTime;%0Aimport org.joda.time.DateTimeZone;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport com.minds.servo.iservice.OrganizationService;%0Aimport com.minds.servo.iservice.ProductService;%0Aimport com.minds.servo.iservice.UserService;%0Aimport com.minds.servo.model.Organization;%0Aimport com.minds.servo.model.Product;%0Aimport com.minds.servo.model.User;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(locations = %7B %22classpath:servlet-context.xml%22 %7D)%0Apublic class UserTest %7B%0A%0A       @Autowired private UserService userService;%0A       @Autowired private OrganizationService organizationService;%0A       @Autowired private ProductService productService;%0A%0A       %0A       @Test%0A       public void testProdcut()%7B%0A   %09%09%0A   %09%09List%3CProduct%3E productList = productService.getAllProducts();%0A   %09%09System.out.println(%22list size = %22 + productList.size());%0A   %09%09%0A   %09%7D%0A       %0A       %0A       //@Test%0A       public void testUserImpl() throws Exception %7B%0A%0A    %09Organization org = new Organization();%0A    %09org.setId(%22mm-dse1%22);%0A    %09org.setName(%22Minds%22);%0A    %09org.setLocation(%22Gulbarga%22);%0A    %09org.setPhone(%2208472%22);%0A    %09org.setAddress(%22Opp high court gulbarga%22);%0A    %09org.setCreatedtime(new Timestamp(Calendar.getInstance().getTime().getTime()));%0A    %09org.setLastupdatedtime(new Timestamp(Calendar.getInstance().getTime().getTime()));%0A    %09%0A    %09organizationService.insertOrganization(org);%0A    %09%0A    %09%0A    %09org = organizationService.getOrganizationByName(%22Minds%22);%0A   %09%09%0A    %09   %0A    %09   %0A    %09User dummyUser = new User();%0A   %09%09dummyUser.setId(%22uu-mm-ur1%22);%0A   %09//%09dummyUser.setFirstName(%22Sohail%22);%0A   %09//%09dummyUser.setMiddleName(%22A%22);%0A   %09//%09dummyUser.setLastName(%22R%22);%0A   %09//%09dummyUser.setEmailId(%22sohail@gmail.com%22);%0A   %09//%09dummyUser.setPassword(%221qaz!QAZ%22);%0A   %09%09dummyUser.setPassword(%2276116462454%22);%0A   %09//%09dummyUser.setMobile(%22986897687%22);%0A   %09%09dummyUser.setUsertype(%221%22);%0A   %09%09dummyUser.setCreatedtime(new Timestamp(Calendar.getInstance().getTime().getTime()));   %09%09%0A   %09%09dummyUser.setLastupdatedtime(new Timestamp(Calendar.getInstance().getTime().getTime()));%0A   %09%09dummyUser.setOrgid_fk(org.getId());%0A   %09%09//dummyUser.setOrgId_fk(orgId_fk);%0A   %09//%09dummyUser.setAddress(%22GLB%22);%0A%0A   %09%09userService.insertUser(dummyUser);%0A        System.out.println(%22Records successfully processed%22);%0A       %7D%0A%7D%0A

Test push