Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
This file is part of Port@l Port@l 3.0 - Portal Engine and Management System Copyright (C) 2010 Isotrol, SA. Port@l is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Port@l is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Port@l. If not, see <>.
 package com.isotrol.impe3.test;
 import static com.isotrol.impe3.core.engine.RequestContexts.client;
 import static com.isotrol.impe3.core.engine.RequestContexts.http;
 import static com.isotrol.impe3.core.engine.RequestContexts.request;
 import java.util.UUID;
Abstract IMPE3 Test Model.

Andres Rodriguez
 abstract class AbstractTestModel implements TestModel {
 	private final ComponentRequestContext context;
 	AbstractTestModel(Portal portalDevice deviceLocale localeFunction<UUIDNodeRepositorynodeRepositories) {
 		final URIGenerator urig = new TestURIGenerator(portal);
 		final ClientRequestContext client = client(device, DefaultDeviceCapabilities.get(device), locale);
 		final RequestContext request = request(clienthttp());
 		final ContentLoader contentLoader;
 		if (nodeRepositories == null) {
 			contentLoader = Proxies.unsupported(ContentLoader.class);
 		} else {
 			contentLoader = new NRContentLoader(portalnodeRepositorieslocale);
 		final PortalRequestContext portalContext = RequestContexts.portal(ModelInfo.create(UUID.randomUUID()), request,
 			urignew SimplePrincipalContext(), contentLoader);
 		final PageRequestContext pageContext = RequestContexts.firstRequestedPage(portalContext, PathSegments.of(),
 			PageKey.main(), LocalParamsFactory.of());
 		this. = RequestContexts.component(pageContext, TestSupport.uuid());

Returns the engine mode.
 	public final EngineMode getMode() {
 		return getPortal().getMode();

Returns the default portal.
 	public final Portal getPortal() {
 		return .getPortal();
 		return ;
 		return RequestContexts.render(null, ImmutableListMultimap.<StringStringof());

	public final ContentTypes getContentTypes() {

	public final Categories getCategories() {
	public final ContentLoader getContentLoader() {
New to GrepCode? Check out our FAQ X