// Development Mode
{
ArtifactSet artifacts = new ArtifactSet();
ArtifactSet updated = new ShardableSelectionScriptLinker().link(
TreeLogger.NULL, new MockLinkerContext(), artifacts, false);
EmittedArtifact selectionScript = findSelectionScript(updated);
assertEquals(MOCK_MODULE_LAST_MODIFIED, selectionScript.getLastModified());
}
// Production Mode
{
ArtifactSet artifacts = new ArtifactSet();
artifacts.add(createCompilationResult());
ArtifactSet updated = new ShardableSelectionScriptLinker().link(
TreeLogger.NULL, new MockLinkerContext(), artifacts, true);
updated = transferThinning(updated);
updated = new ShardableSelectionScriptLinker().link(TreeLogger.NULL,
new MockLinkerContext(), updated, false);
EmittedArtifact selectionScript = findSelectionScript(updated);
assertTrue(MOCK_MODULE_LAST_MODIFIED != selectionScript.getLastModified());
}
}