public void testConstructor5(TestHarness harness)
{
harness.checkPoint("()");
harness.checkPoint("(BeanContext, Locale, boolean, boolean)");
BeanContext bc = new BeanContextSupport();
BeanContextSupport bcs = new BeanContextSupport(bc, Locale.FRANCE, true, true);
harness.check(bcs.getBeanContext(), null);
harness.check(bcs.getBeanContextPeer(), bc);
harness.check(bcs.beanContextChildPeer, bc);
harness.check(!bcs.needsGui());
harness.check(bcs.isDesignTime());
harness.check(!bcs.avoidingGui());
harness.check(bcs.getLocale(), Locale.FRANCE);
// try null
bcs = new BeanContextSupport(null, null, true, true);
harness.check(bcs.getBeanContext(), null);
harness.check(bcs.getBeanContextPeer(), bcs);
harness.check(bcs.beanContextChildPeer, bcs);
harness.check(!bcs.needsGui());
harness.check(bcs.isDesignTime());
harness.check(!bcs.avoidingGui());
harness.check(bcs.getLocale(), Locale.getDefault());
harness.check(bcs.size(), 0);
}