assertEquals( "session locale is wrong", Locale.CHINESE, session.getLocale() ); //$NON-NLS-1$
}
public void testAttributes() {
StandaloneSession session = new StandaloneSession();
assertFalse( "Wrong attributes", session.getAttributeNames().hasNext() ); //$NON-NLS-1$
session.setAttribute( "testattribute", this ); //$NON-NLS-1$
assertTrue( "Wrong attributes", session.getAttributeNames().hasNext() ); //$NON-NLS-1$
assertEquals( "Wrong attribute name", "testattribute", session.getAttributeNames().next() ); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals( "Wrong attribute value", this, session.getAttribute( "testattribute" ) ); //$NON-NLS-1$ //$NON-NLS-2$
session.removeAttribute( "testattribute" ); //$NON-NLS-1$
assertFalse( "Wrong attributes", session.getAttributeNames().hasNext() ); //$NON-NLS-1$
assertNull( "Wrong attribute value", session.getAttribute( "testattribute" ) ); //$NON-NLS-1$ //$NON-NLS-2$
}