public class EditOrganizationInfoActionTest extends AbstractOrganizationInfoActionTest
{
public void testOrganisationInfoSaves()
throws Exception
{
config.setOrganisationInfo(new OrganisationInformation());
OrganisationInformation orginfo = config.getOrganisationInfo();
orginfo.setLogoLocation("LOGO");
orginfo.setName("NAME");
orginfo.setUrl("URL");
configuration.save(config);
reloadAction();
action.prepare();
assertEquals("LOGO", action.getOrganisationLogo());
assertEquals("NAME", action.getOrganisationName());
assertEquals("URL", action.getOrganisationUrl());
action.setOrganisationLogo("LOGO1");
action.setOrganisationName("NAME1");
action.setOrganisationUrl("URL1");
action.execute();
assertEquals("LOGO1", orginfo.getLogoLocation());
assertEquals("NAME1", orginfo.getName());
assertEquals("URL1", orginfo.getUrl());
}