1
2
3
4
5
6
7
8
9
10
11 package org.mule.util;
12
13 import org.mule.tck.AbstractMuleTestCase;
14
15 public class SplashScreenTestCase extends AbstractMuleTestCase
16 {
17
18 public void testMuleContextSplashScreenRendering() throws Exception
19 {
20 SplashScreen serverStartupSplashScreen = new ServerStartupSplashScreen();
21 assertNotNull(serverStartupSplashScreen);
22 assertTrue(serverStartupSplashScreen.toString().length() > 0);
23
24 muleContext.start();
25 muleContext.stop();
26 String initialStartBoilerPlate = serverStartupSplashScreen.toString();
27
28 muleContext.start();
29 muleContext.stop();
30 String subsequentStartBoilerPlate = serverStartupSplashScreen.toString();
31
32
33 assertEquals("Splash-screen sizes differ, ", initialStartBoilerPlate.length(), subsequentStartBoilerPlate.length());
34 }
35
36 }