### Question:
LaunchableConfig { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + media.hashCode(); result = prime * result + delay; result = prime * result + ox; result = prime * result + oy; result = prime * result + vector.hashCode(); return result; } LaunchableConfig(String media, int delay, int ox, int oy, Force vector); static LaunchableConfig imports(Xml node); static Xml exports(LaunchableConfig config); String getMedia(); int getDelay(); int getOffsetX(); int getOffsetY(); Force getVector(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_LAUNCHABLE; static final String ATT_MEDIA; static final String ATT_DELAY; static final String ATT_OFFSET_X; static final String ATT_OFFSET_Y; }### Answer:
@Test void testHashCode() { final LaunchableConfig launchable = new LaunchableConfig("media", 10, 1, 2, new Force(1.0, 2.0)); assertHashEquals(launchable, launchable); assertHashEquals(launchable, new LaunchableConfig("media", 10, 1, 2, new Force(1.0, 2.0))); assertHashNotEquals(launchable, new LaunchableConfig("", 10, 1, 2, new Force(1.0, 2.0))); assertHashNotEquals(launchable, new LaunchableConfig("media", 0, 1, 2, new Force(1.0, 2.0))); assertHashNotEquals(launchable, new LaunchableConfig("media", 10, 1, 2, new Force(2.0, 1.0))); assertHashNotEquals(launchable, new LaunchableConfig("media", 10, 0, 2, new Force(1.0, 2.0))); assertHashNotEquals(launchable, new LaunchableConfig("media", 10, 1, 0, new Force(1.0, 2.0))); }