@Test public void testGadget() { String gadgetDefinitionUrl = "http: GadgetDefinition testGadgetDefinition = new GadgetDefinition(gadgetDefinitionUrl, UUID.randomUUID().toString(), new GalleryItemCategory( "somecategory")); Gadget testGadget = new Gadget(testGadgetDefinition, 1, 0, new Person(), ""); assertEquals("Gadget Zone Number is not the same as the one passed in.", 1, testGadget.getZoneNumber()); assertEquals("Gadget Zone Index is not the same as the one passed in.", 0, testGadget.getZoneIndex()); assertEquals("GadgetDefinition url is not the same s the one passed in.", gadgetDefinitionUrl, testGadget .getGadgetDefinition().getUrl()); }
protected Gadget() { }
Gadget extends DomainEntity implements Serializable { protected Gadget() { } }
Gadget extends DomainEntity implements Serializable { protected Gadget() { } protected  Gadget();  Gadget(final GadgetDefinition inGadgetDefinition,
            final int inZoneNumber, final int inZoneIndex, final Person inOwner,
            final String inGadgetUserPref);  Gadget(final GadgetDefinition inGadgetDefinition,
            final int inZoneNumber, final int inZoneIndex, final Person inOwner);  Gadget(final Gadget inGadget); }
Gadget extends DomainEntity implements Serializable { protected Gadget() { } protected  Gadget();  Gadget(final GadgetDefinition inGadgetDefinition,
            final int inZoneNumber, final int inZoneIndex, final Person inOwner,
            final String inGadgetUserPref);  Gadget(final GadgetDefinition inGadgetDefinition,
            final int inZoneNumber, final int inZoneIndex, final Person inOwner);  Gadget(final Gadget inGadget); int getZoneNumber(); void setZoneNumber(final int inZoneNumber); int getZoneIndex(); void setZoneIndex(final int inZoneIndex); Person getOwner(); void setOwner(final Person inOwner); GadgetDefinition getGadgetDefinition(); void setGadgetDefinition(final GadgetDefinition inGadgetDefinition); String getGadgetUserPref(); void setGadgetUserPref(final String inGadgetUserPref); boolean isMinimized(); void setMinimized(final boolean inMinimized); Boolean isMaximized(); void setMaximized(final Boolean inMaximized); @Override void setId(final long inId); }
Gadget extends DomainEntity implements Serializable { protected Gadget() { } protected  Gadget();  Gadget(final GadgetDefinition inGadgetDefinition,
            final int inZoneNumber, final int inZoneIndex, final Person inOwner,
            final String inGadgetUserPref);  Gadget(final GadgetDefinition inGadgetDefinition,
            final int inZoneNumber, final int inZoneIndex, final Person inOwner);  Gadget(final Gadget inGadget); int getZoneNumber(); void setZoneNumber(final int inZoneNumber); int getZoneIndex(); void setZoneIndex(final int inZoneIndex); Person getOwner(); void setOwner(final Person inOwner); GadgetDefinition getGadgetDefinition(); void setGadgetDefinition(final GadgetDefinition inGadgetDefinition); String getGadgetUserPref(); void setGadgetUserPref(final String inGadgetUserPref); boolean isMinimized(); void setMinimized(final boolean inMinimized); Boolean isMaximized(); void setMaximized(final Boolean inMaximized); @Override void setId(final long inId);  }