// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java
// public class MonetaEnvironment extends BaseType {
// 	
// 	private static MonetaConfiguration configuration;
// 
// 	public static MonetaConfiguration getConfiguration() {
// 		return configuration;
// 	}
// 
// 	public static void setConfiguration(MonetaConfiguration configuration) {
// 		MonetaEnvironment.configuration = configuration;
// 	}
// 
// }


import org.force66.mock.servletapi.MockRequest;
import org.force66.mock.servletapi.MockResponse;
import org.force66.mock.servletapi.MockServletConfig;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.moneta.config.MonetaEnvironment;

/*
 * This software is licensed under the Apache License, Version 2.0
 * (the "License") agreement; you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.moneta;


public class MonetaServletTest extends MonetaTestBase {
	
	private MonetaServlet servlet;
	private MockRequest request;
	private MockResponse response;

	@Before
	public void setUp() throws Exception {
		super.setUp();
		servlet = new MonetaServlet();
		request = new MockRequest();
		response = new MockResponse();
	}
	
	@Test
	public void testInit() throws Exception {
		MockServletConfig config = new MockServletConfig();
		
		servlet.init(config);		

// Path: moneta-core/src/main/java/org/moneta/config/MonetaEnvironment.java
// public class MonetaEnvironment extends BaseType {
// 	
// 	private static MonetaConfiguration configuration;
// 
// 	public static MonetaConfiguration getConfiguration() {
// 		return configuration;
// 	}
// 
// 	public static void setConfiguration(MonetaConfiguration configuration) {
// 		MonetaEnvironment.configuration = configuration;
// 	}
// 
// }


// Path: moneta-core/src/test/java/org/moneta/MonetaServletTest.java
import org.force66.mock.servletapi.MockRequest;
import org.force66.mock.servletapi.MockResponse;
import org.force66.mock.servletapi.MockServletConfig;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.moneta.config.MonetaEnvironment;

/*
 * This software is licensed under the Apache License, Version 2.0
 * (the "License") agreement; you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.moneta;


public class MonetaServletTest extends MonetaTestBase {
	
	private MonetaServlet servlet;
	private MockRequest request;
	private MockResponse response;

	@Before
	public void setUp() throws Exception {
		super.setUp();
		servlet = new MonetaServlet();
		request = new MockRequest();
		response = new MockResponse();
	}
	
	@Test
	public void testInit() throws Exception {
		MockServletConfig config = new MockServletConfig();
		
		servlet.init(config);		

		Assert.assertTrue(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes()==null);
