// Path: src/test/java/com/tiemens/secretshare/jdeps/model/JDeps.java
// public static class JdepsLineModule2Module extends JdepsLine
// {
//     private final String userModule;
//     private final String usesModule;
//     public JdepsLineModule2Module(String userModule, String usesModule)
//     {
//         super();
//         this.userModule = userModule;
//         this.usesModule = usesModule;
//     }
//     public String getUserModule()
//     {
//         return userModule;
//     }
//     public String getUsesModule()
//     {
//         return usesModule;
//     }
// }
// 
// Path: src/test/java/com/tiemens/secretshare/jdeps/model/JDeps.java
// public static class JdepsLinePackage2PackageModule extends JdepsLine
// {
//     private final String userPackage;
//     private final String usesPackage;
//     private final String usesModule;
//     public JdepsLinePackage2PackageModule(String userPackage,
//             String usesPackage, String usesModule)
//     {
//         super();
//         this.userPackage = userPackage;
//         this.usesPackage = usesPackage;
//         this.usesModule = usesModule;
//     }
//     public String getUserPackage()
//     {
//         return userPackage;
//     }
//     public String getUsesPackage()
//     {
//         return usesPackage;
//     }
//     public String getUsesModule()
//     {
//         return usesModule;
//     }
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.tiemens.secretshare.jdeps.model.JDeps.JdepsLineModule2Module;
import com.tiemens.secretshare.jdeps.model.JDeps.JdepsLinePackage2PackageModule;
/*******************************************************************************
 * Copyright (c) 2009, 2014 Tim Tiemens.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 *
 * Contributors:
 *     Tim Tiemens - initial API and implementation
 *******************************************************************************/
package com.tiemens.secretshare.jdeps.model;




public class JDepsTest
{

    @Test
    public void testm2m()
    {
        subtestm2m("classes -> java.base", "classes", "java.base");
        subtestm2m("classes -> not found", "classes", "not found");
        subtestm2m(" classes -> java.base", null, null);
    }

    private void subtestm2m(String input, String expectedUser, String expectedUsed)
    {
        JDeps.ParseJdepsLine parser = new JDeps.ParseJdepsLineModule2Module();
// Path: src/test/java/com/tiemens/secretshare/jdeps/model/JDeps.java
// public static class JdepsLineModule2Module extends JdepsLine
// {
//     private final String userModule;
//     private final String usesModule;
//     public JdepsLineModule2Module(String userModule, String usesModule)
//     {
//         super();
//         this.userModule = userModule;
//         this.usesModule = usesModule;
//     }
//     public String getUserModule()
//     {
//         return userModule;
//     }
//     public String getUsesModule()
//     {
//         return usesModule;
//     }
// }
// 
// Path: src/test/java/com/tiemens/secretshare/jdeps/model/JDeps.java
// public static class JdepsLinePackage2PackageModule extends JdepsLine
// {
//     private final String userPackage;
//     private final String usesPackage;
//     private final String usesModule;
//     public JdepsLinePackage2PackageModule(String userPackage,
//             String usesPackage, String usesModule)
//     {
//         super();
//         this.userPackage = userPackage;
//         this.usesPackage = usesPackage;
//         this.usesModule = usesModule;
//     }
//     public String getUserPackage()
//     {
//         return userPackage;
//     }
//     public String getUsesPackage()
//     {
//         return usesPackage;
//     }
//     public String getUsesModule()
//     {
//         return usesModule;
//     }
// }


// Path: src/test/java/com/tiemens/secretshare/jdeps/model/JDepsTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.tiemens.secretshare.jdeps.model.JDeps.JdepsLineModule2Module;
import com.tiemens.secretshare.jdeps.model.JDeps.JdepsLinePackage2PackageModule;

/*******************************************************************************
 * Copyright (c) 2009, 2014 Tim Tiemens.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 *
 * Contributors:
 *     Tim Tiemens - initial API and implementation
 *******************************************************************************/
package com.tiemens.secretshare.jdeps.model;




public class JDepsTest
{

    @Test
    public void testm2m()
    {
        subtestm2m("classes -> java.base", "classes", "java.base");
        subtestm2m("classes -> not found", "classes", "not found");
        subtestm2m(" classes -> java.base", null, null);
    }

    private void subtestm2m(String input, String expectedUser, String expectedUsed)
    {
        JDeps.ParseJdepsLine parser = new JDeps.ParseJdepsLineModule2Module();
        JdepsLineModule2Module ret = (JdepsLineModule2Module) parser.parseLine(input);