use of org.apache.openejb.test.entity.cmr.manytomany.GameLocal in project tomee by apache.
the class ManyToManyComplexPkTests method testBSetAExistingANewB.
public void testBSetAExistingANewB() throws Exception {
resetDB();
beginTransaction();
try {
final PlatformLocal platform = findPlatform(new Integer(1));
final GameLocal game = createGame(new Integer(33));
final Set<PlatformLocal> platformSets = game.getPlatforms();
platformSets.add(platform);
} finally {
completeTransaction();
}
assertLinked(1, 33);
}
Aggregations