/** * Copyright (c) 2005-2012 https://github.com/zhangkaitao * * Licensed under the Apache License, Version 2.0 (the "License"); */ package com.sishuok.hello; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * <p>User: Zhang Kaitao * <p>Date: 13-7-8 ����9:06 * <p>Version: 1.0 */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations={"classpath:spring-config-hello.xml"}) public class HelloIT { @Autowired private ApplicationContext applicationContext; @Test public void testPublishEvent() { applicationContext.publishEvent(new ContentEvent("����������IJ��͸�����")); } }