Linker sharedLinker = linker.getLinker(linkType);
assertEquals("libfoo.dylib", sharedLinker.getOutputFileNames("foo", null)[0]);
}
public void testGetLinkerNonDarwinPlugin() {
System.setProperty("os.name", "Microsoft Windows");
GccLinker linker = GccLinker.getInstance();
OutputTypeEnum outputType = new OutputTypeEnum();
outputType.setValue("plugin");
LinkType linkType = new LinkType();
linkType.setOutputType(outputType);
Linker pluginLinker = linker.getLinker(linkType);
assertEquals("libfoo.so", pluginLinker.getOutputFileNames("foo", null)[0]);
}