@Test public void testCreateMods() { ModsDefinition mods = new ModsDefinition(); NdkPeriodicalVolumeMapper mapper = new NdkPeriodicalVolumeMapper(); Context ctx = EasyMock.createMock(Context.class); EasyMock.expect(ctx.getPid()).andReturn("uuid:testId").anyTimes(); EasyMock.replay(ctx); mapper.createMods(mods, ctx); List<IdentifierDefinition> identifiersResult = mods.getIdentifier(); assertEquals(1, identifiersResult.size()); IdentifierDefinition idResult = identifiersResult.get(0); assertEquals("uuid", idResult.getType()); assertEquals("testId", idResult.getValue()); assertEquals(1, mods.getGenre().size()); assertEquals("volume", mods.getGenre().get(0).getValue()); }
@Override public void createMods(ModsDefinition mods, Context ctx) { super.createMods(mods, ctx); addGenre(mods); fillAbstract(mods); fillRecordInfo(mods); }
NdkPeriodicalVolumeMapper extends RdaNdkMapper { @Override public void createMods(ModsDefinition mods, Context ctx) { super.createMods(mods, ctx); addGenre(mods); fillAbstract(mods); fillRecordInfo(mods); } }
NdkPeriodicalVolumeMapper extends RdaNdkMapper { @Override public void createMods(ModsDefinition mods, Context ctx) { super.createMods(mods, ctx); addGenre(mods); fillAbstract(mods); fillRecordInfo(mods); }  }
NdkPeriodicalVolumeMapper extends RdaNdkMapper { @Override public void createMods(ModsDefinition mods, Context ctx) { super.createMods(mods, ctx); addGenre(mods); fillAbstract(mods); fillRecordInfo(mods); }  @Override void createMods(ModsDefinition mods, Context ctx); }
NdkPeriodicalVolumeMapper extends RdaNdkMapper { @Override public void createMods(ModsDefinition mods, Context ctx) { super.createMods(mods, ctx); addGenre(mods); fillAbstract(mods); fillRecordInfo(mods); }  @Override void createMods(ModsDefinition mods, Context ctx);  }