1 package org.apache.maven.archiva.web.action.admin.appearance;
3 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
4 import org.apache.maven.archiva.configuration.Configuration;
5 import org.apache.maven.archiva.web.action.AbstractWebworkTestCase;
6 import org.easymock.MockControl;
10 public abstract class AbstractOrganizationInfoActionTest extends AbstractWebworkTestCase
12 protected MockControl archivaConfigurationControl;
14 protected ArchivaConfiguration configuration;
16 protected AbstractAppearanceAction action;
18 protected Configuration config;
20 protected abstract AbstractAppearanceAction getAction();
23 protected void setUp()
28 config = new Configuration();
29 archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
30 configuration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
32 configuration.getConfiguration();
33 archivaConfigurationControl.setReturnValue(config, 1, 2);
35 configuration.save(config);
36 archivaConfigurationControl.setVoidCallable(1, 2);
38 archivaConfigurationControl.replay();
41 protected void reloadAction()
44 action.setConfiguration( configuration );