org.nakedobjects.applib.fixtures
Class LogonFixture
java.lang.Object
org.nakedobjects.applib.fixtures.LogonFixture
- All Implemented Interfaces:
- InstallableFixture
public class LogonFixture
- extends Object
- implements InstallableFixture
Indicates that the demo or test should be run as the specified user, with
the specified roles.
Note: this fixture does not in itself do anything (its install() is a
no-op). However, if present in the fixture list then is "noticed" by the framework,
and is used to automatically logon when the framework is booted (providing running in
prototype or exploration, not in production).
To change the user during the installation of fixtures, either use SwitchUserFixture.
- See Also:
SwitchUserFixture
LogonFixture
public LogonFixture(String username,
String... roles)
LogonFixture
public LogonFixture(String username,
List<String> roles)
getUsername
public String getUsername()
getRoles
public List<String> getRoles()
install
public final void install()
- Specified by:
install in interface InstallableFixture
getType
public FixtureType getType()
- Description copied from interface:
InstallableFixture
- Determines whether the fixture will be
installed, dependent
on the state of the object (data) store and the user profile store.
- Specified by:
getType in interface InstallableFixture
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.