@@ -0,0 +1,1812 @@
+package org.to2mbn.jmccc.mcdownloader.test;%0A%0Aimport java.io.IOException;%0Aimport java.util.LinkedHashSet;%0Aimport java.util.Set;%0Aimport org.json.JSONObject;%0Aimport org.junit.Test;%0Aimport org.to2mbn.jmccc.mcdownloader.provider.liteloader.LiteloaderVersion;%0Aimport static org.junit.Assert.*;%0A%0Apublic class LiteloaderVersionTest %7B%0A%0A%09@Test%0A%09public void testSerialization() throws ClassNotFoundException, IOException %7B%0A%09%09Set%3CJSONObject%3E libs = new LinkedHashSet%3CJSONObject%3E();%0A%09%09JSONObject lib;%0A%0A%09%09lib = new JSONObject();%0A%09%09lib.put(%22name%22, %22net.minecraft:launchwrapper:1.11%22);%0A%09%09libs.add(lib);%0A%0A%09%09lib = new JSONObject();%0A%09%09lib.put(%22name%22, %22org.spongepowered:mixin:0.5.5-SNAPSHOT%22);%0A%09%09lib.put(%22url%22, %22https://repo.spongepowered.org/maven/%22);%0A%09%09libs.add(lib);%0A%0A%09%09SerializationTestUtils.serializeAndDeserialize(%0A%09%09%09%09new LiteloaderVersion(%221.9%22, %221.9%22, %22tweakClass%22, %22repoUrl%22, libs));%0A%09%7D%0A%0A%09@Test%0A%09public void testNotEq() %7B%0A%09%09Set%3CJSONObject%3E libsA = new LinkedHashSet%3CJSONObject%3E();%0A%09%09JSONObject lib;%0A%0A%09%09lib = new JSONObject();%0A%09%09lib.put(%22name%22, %22net.minecraft:launchwrapper:1.11%22);%0A%09%09libsA.add(lib);%0A%0A%09%09lib = new JSONObject();%0A%09%09lib.put(%22name%22, %22org.spongepowered:mixin:0.5.5-SNAPSHOT%22);%0A%09%09lib.put(%22url%22, %22https://repo.spongepowered.org/maven/%22);%0A%09%09libsA.add(lib);%0A%0A%09%09Set%3CJSONObject%3E libsB = new LinkedHashSet%3CJSONObject%3E();%0A%0A%09%09lib = new JSONObject();%0A%09%09lib.put(%22name%22, %22net.minecraft:launchwrapper:1.11%22);%0A%09%09libsB.add(lib);%0A%0A%09%09lib = new JSONObject();%0A%09%09lib.put(%22name%22, %22org.spongepowered:mixin:0.5.5-SNAPSHOT%22);%0A%09%09libsB.add(lib);%0A%0A%09%09assertEquals(false, new LiteloaderVersion(%221.9%22, %221.9%22, null, null, libsA).equals(new LiteloaderVersion(%221.9%22, %221.9%22, null, null, libsB)));%0A%09%09assertEquals(false, new LiteloaderVersion(%221.9%22, %221.9%22, null, null, libsB).equals(new LiteloaderVersion(%221.9%22, %221.9%22, null, null, libsA)));%0A%09%7D%0A%0A%7D%0A

add LiteloaderVersionTest