2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
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
;
15 import junit
.framework
.TestCase
;
16 import org
.springframework
.context
.ApplicationContext
;
17 import org
.springframework
.context
.support
.ClassPathXmlApplicationContext
;
23 public class PublicationHouseServiceImplTest
extends TestCase
{
25 ApplicationContext context
;
27 protected void setUp() throws Exception
{
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);*/