// Path: core/src/main/java/org/mvcspec/ozark/core/ModelsImpl.java
// @RequestScoped
// public class ModelsImpl implements Models {
// 
//     private final Map<String, Object> map = new LinkedHashMap<>();
// 
//     @Override
//     public Models put(String name, Object model) {
//         Objects.requireNonNull(name, "Name must not be null");
//         map.put(name, model);
//         return this;
//     }
// 
//     @Override
//     public Object get(String name) {
//         return get(name, Object.class);
//     }
// 
//     @Override
//     public <T> T get(String name, Class<T> type) {
//         Objects.requireNonNull(name, "Name must not be null");
//         Objects.requireNonNull(type, "Type must not be null");
//         return type.cast(map.get(name));
//     }
// 
//     @Override
//     public Map<String, Object> asMap() {
//         return Collections.unmodifiableMap(new LinkedHashMap<>(map));
//     }
// 
//     @Override
//     public Iterator<String> iterator() {
//         return map.keySet().iterator();
//     }
// }


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.container.ResourceInfo;
import javax.ws.rs.core.Configuration;
import javax.ws.rs.core.UriInfo;
import org.easymock.EasyMock;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import org.mvcspec.ozark.core.ModelsImpl;
import org.junit.Test;
import static org.junit.Assert.*;
/*
 * Copyright © 2017 Ivar Grimstad (ivar.grimstad@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * 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.mvcspec.ozark.engine;


/**
 * The JUnit test for the ViewEngineContext class.
 *
 * @author Manfred Riem (manfred.riem at oracle.com)
 */
public class ViewEngineContextImplTest {

    /**
     * Test getView method.
     */
    @Test
    public void testGetView() {
        ViewEngineContextImpl context = new ViewEngineContextImpl("view", null, null, null, null, null, null, null, null, null, null);
        assertEquals("view", context.getView());
    }

    /**
     * Test getModels method.
     */
    @Test
    public void testGetModels() {
        ViewEngineContextImpl context = new ViewEngineContextImpl(null, null, null, null, null, null, null, null, null, null, null);
        assertNull(context.getModels());
// Path: core/src/main/java/org/mvcspec/ozark/core/ModelsImpl.java
// @RequestScoped
// public class ModelsImpl implements Models {
// 
//     private final Map<String, Object> map = new LinkedHashMap<>();
// 
//     @Override
//     public Models put(String name, Object model) {
//         Objects.requireNonNull(name, "Name must not be null");
//         map.put(name, model);
//         return this;
//     }
// 
//     @Override
//     public Object get(String name) {
//         return get(name, Object.class);
//     }
// 
//     @Override
//     public <T> T get(String name, Class<T> type) {
//         Objects.requireNonNull(name, "Name must not be null");
//         Objects.requireNonNull(type, "Type must not be null");
//         return type.cast(map.get(name));
//     }
// 
//     @Override
//     public Map<String, Object> asMap() {
//         return Collections.unmodifiableMap(new LinkedHashMap<>(map));
//     }
// 
//     @Override
//     public Iterator<String> iterator() {
//         return map.keySet().iterator();
//     }
// }


// Path: core/src/test/java/org/mvcspec/ozark/engine/ViewEngineContextImplTest.java
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.container.ResourceInfo;
import javax.ws.rs.core.Configuration;
import javax.ws.rs.core.UriInfo;
import org.easymock.EasyMock;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import org.mvcspec.ozark.core.ModelsImpl;
import org.junit.Test;
import static org.junit.Assert.*;

/*
 * Copyright © 2017 Ivar Grimstad (ivar.grimstad@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * 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.mvcspec.ozark.engine;


/**
 * The JUnit test for the ViewEngineContext class.
 *
 * @author Manfred Riem (manfred.riem at oracle.com)
 */
public class ViewEngineContextImplTest {

    /**
     * Test getView method.
     */
    @Test
    public void testGetView() {
        ViewEngineContextImpl context = new ViewEngineContextImpl("view", null, null, null, null, null, null, null, null, null, null);
        assertEquals("view", context.getView());
    }

    /**
     * Test getModels method.
     */
    @Test
    public void testGetModels() {
        ViewEngineContextImpl context = new ViewEngineContextImpl(null, null, null, null, null, null, null, null, null, null, null);
        assertNull(context.getModels());
        context = new ViewEngineContextImpl(null, new ModelsImpl(), null, null, null, null, null, null, null, null, null);