Skip to content

Instantly share code, notes, and snippets.

View maurizio-cucchiara's full-sized avatar

Maurizio Cucchiara maurizio-cucchiara

View GitHub Profile
/*
* $Id$
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
package org.apache.commons.beanutils.converters;
import junit.framework.TestCase;
import org.apache.commons.beanutils.ConvertUtils;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
/**
@maurizio-cucchiara
maurizio-cucchiara / SampleActionIntegrationTest.java
Created April 11, 2012 07:41
Struts+Spring+Junit test sample
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/org/apache/struts/spring/app-context.xml"})
public class SampleActionIntegrationTest extends StrutsSpringJUnit4TestCase<SampleAction> {
@Test
public void executeTest() throws Exception {
String result = executeAction("/sample");
SampleAction action = getAction();
assertFalse(containsErrors());
}