01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TestParticipantSite.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine;
09:
10: import junit.framework.TestCase;
11:
12: public class TestParticipantSite extends TestCase {
13: public TestParticipantSite(String name) {
14: super (name);
15: }
16:
17: public void testParticipant() {
18: Site site = Site.getRepInstance();
19:
20: assertEquals(site.getUrls().size(), 1);
21:
22: assertEquals("com.uwyn.rife.engine.testelements.engine.Simple",
23: site.resolveUrl("/participant/element", null)
24: .getImplementation());
25:
26: ElementInfo elementinfo1 = site.resolveUrl(
27: "/participant/element", null);
28: assertNotNull(elementinfo1);
29: assertTrue(!elementinfo1.hasGlobalVars());
30: assertNull(elementinfo1.getInheritanceStack());
31: }
32: }
|