use of org.magic.api.exports.impl.MTGDesktopCompanionExport in project MtgDesktopCompanion by nicho92.
the class MTGControler method saveDeck.
public void saveDeck(MagicDeck deck) throws IOException {
if (!MTGConstants.MTG_DECK_DIRECTORY.exists())
MTGConstants.MTG_DECK_DIRECTORY.mkdir();
MTGDesktopCompanionExport serialis = new MTGDesktopCompanionExport();
serialis.export(deck, new File(MTGConstants.MTG_DECK_DIRECTORY, deck.getName() + serialis.getFileExtension()));
}
use of org.magic.api.exports.impl.MTGDesktopCompanionExport in project MtgDesktopCompanion by nicho92.
the class ExportsProviderTests method initTests.
@Test
public void initTests() {
MTGControler.getInstance().getEnabledProviders().init();
testExports(new Apprentice2DeckExport());
testExports(new CocatriceDeckExport());
testExports(new CSVExport());
testExports(new DCIDeckSheetExport());
testExports(new JsonExport());
testExports(new MKMFileWantListExport());
testExports(new MTGDesktopCompanionExport());
testExports(new MTGODeckExport());
testExports(new OCTGNDeckExport());
testExports(new PDFExport());
testExports(new XMageDeckExport());
testExports(new MagicWorkStationDeckExport());
try {
testExports(new MkmOnlineExport());
} catch (MkmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Aggregations