Package ch.entwine.weblounge.common.impl.site

Examples of ch.entwine.weblounge.common.impl.site.SiteURLImpl


  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    siteUrl = new SiteURLImpl(new URL(siteAddress));
    siteUrlWithPort = new SiteURLImpl(new URL(siteAddressWithPort));

    siteMock = EasyMock.createNiceMock(Site.class);
    EasyMock.expect(siteMock.getLanguage("de")).andReturn(german).anyTimes();
    EasyMock.expect(siteMock.getDefaultLanguage()).andReturn(english);
    EasyMock.expect(siteMock.getHostname()).andReturn(siteUrl).anyTimes();
View Full Code Here


   *
   * @throws Exception
   *           if setup fails
   */
  protected void setUpPreliminaries() throws Exception {
    hostname = new SiteURLImpl(new URL("http://localhost"));

    site = EasyMock.createNiceMock(Site.class);
    EasyMock.expect(site.getIdentifier()).andReturn("testsite").anyTimes();
    EasyMock.expect(site.getHostname((Environment) EasyMock.anyObject())).andReturn(hostname).anyTimes();
    EasyMock.expect(site.getOptionNames()).andReturn(new String[] {}).anyTimes();
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.site.SiteURLImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.