// Path: alfresco-mvc-rest/src/test/java/com/gradecak/alfresco/mvc/webscript/mock/MockWebscriptBuilder.java
// public class MockWebscriptBuilder {
// 
// 	static public MockWebscript singleWebscript(final AbstractWebScript webScript) throws IOException {
// 		return new MockWebscript(webScript);
// 	}
// }


import com.gradecak.alfresco.mvc.webscript.mock.MockWebscriptBuilder;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
/**
 * Copyright gradecak.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 com.gradecak.alfresco.mvc.webscript;



@ExtendWith(SpringExtension.class)
@ContextConfiguration(locations = { "/test-webscriptdispatcher-annotation-single-context.xml" })
@TestInstance(Lifecycle.PER_CLASS)
public class DispatcherWebscriptSpringAnnotationSingleTest extends AbstractAlfrescoMvcTest {

	@Autowired
	private DispatcherWebscript webScript;

	@BeforeAll
	public void beforeAll() throws Exception {
		MockitoAnnotations.initMocks(this);

// Path: alfresco-mvc-rest/src/test/java/com/gradecak/alfresco/mvc/webscript/mock/MockWebscriptBuilder.java
// public class MockWebscriptBuilder {
// 
// 	static public MockWebscript singleWebscript(final AbstractWebScript webScript) throws IOException {
// 		return new MockWebscript(webScript);
// 	}
// }


// Path: alfresco-mvc-rest/src/test/java/com/gradecak/alfresco/mvc/webscript/DispatcherWebscriptSpringAnnotationSingleTest.java
import com.gradecak.alfresco.mvc.webscript.mock.MockWebscriptBuilder;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;

/**
 * Copyright gradecak.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 com.gradecak.alfresco.mvc.webscript;



@ExtendWith(SpringExtension.class)
@ContextConfiguration(locations = { "/test-webscriptdispatcher-annotation-single-context.xml" })
@TestInstance(Lifecycle.PER_CLASS)
public class DispatcherWebscriptSpringAnnotationSingleTest extends AbstractAlfrescoMvcTest {

	@Autowired
	private DispatcherWebscript webScript;

	@BeforeAll
	public void beforeAll() throws Exception {
		MockitoAnnotations.initMocks(this);

		mockWebscript = MockWebscriptBuilder.singleWebscript(webScript);