Add example for Form submission w/out attachment
[smart-bookstore.git] / ServiceImplementation / src / test / java / com / smartitengineering / bookstore / serviceimplementation / PublicationHouseServiceImplTest.java
blobb14112021e79d53be6101764d90b58291dc301a7
1 /*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
6 package com.smartitengineering.bookstore.serviceimplementation;
8 import com.smartitengineering.bookstore.service.impl.PublicationHouseServiceImpl;
9 import com.smartitengineering.bookstore.domain.PublicationHouse;
10 import com.smartitengineering.bookstore.domain.filter.PublicationHouseFilter;
11 import java.util.HashSet;
12 import java.util.LinkedList;
13 import java.util.List;
14 import java.util.Set;
15 import junit.framework.TestCase;
16 import org.springframework.context.ApplicationContext;
17 import org.springframework.context.support.ClassPathXmlApplicationContext;
19 /**
21 * @author modhu7
23 public class PublicationHouseServiceImplTest extends TestCase{
25 ApplicationContext context;
26 @Override
27 protected void setUp() throws Exception {
28 super.setUp();
29 if (context == null) {
30 context = new ClassPathXmlApplicationContext("service-app-context.xml");
34 public void testPublicationHouseServiceImpl(){
35 /*PublicationHouseServiceImpl publicationHouseServiceImpl =
36 (PublicationHouseServiceImpl) context.getBean("publicationHouseService");
37 PublicationHouse publicationHouse = new PublicationHouse();
38 publicationHouse.setName("Smart Book House");
39 publicationHouse.setAddress("Mohammadpur");
40 publicationHouse.setContactEmailAddress("info@smartbookhouse.com");
41 publicationHouse.setUniqueShortName("smart");
42 publicationHouseServiceImpl.create(publicationHouse);*/