// Path: srcdeps-core/src/main/java/org/srcdeps/core/config/scalar/CharStreamSource.java
// public enum Scheme {
//     classpath {
//         @Override
//         public Reader openReader(String resource, Charset encoding, Path resolveAgainst) {
//             return new InputStreamReader(getClass().getResourceAsStream(resource), encoding);
//         }
//     }, //
//     file {
//         @Override
//         public Reader openReader(String resource, Charset encoding, Path resolveAgainst) throws IOException {
//             return Files.newBufferedReader(resolveAgainst.resolve(Paths.get(resource)), encoding);
//         }
//     }, //
//     literal {
//         @Override
//         public Reader openReader(String resource, Charset encoding, Path resolveAgainst) {
//             return new StringReader(resource);
//         }
//     };
//     public abstract Reader openReader(String resource, Charset encoding, Path resolveAgainst) throws IOException;
// }


import org.junit.Assert;
import org.junit.Test;
import org.srcdeps.core.config.scalar.CharStreamSource.Scheme;
/**
 * Copyright 2015-2018 Maven Source Dependencies
 * Plugin contributors as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.srcdeps.core.config.scalar;


public class CharStreamSourceTest {

    @Test
    public void of() {
// Path: srcdeps-core/src/main/java/org/srcdeps/core/config/scalar/CharStreamSource.java
// public enum Scheme {
//     classpath {
//         @Override
//         public Reader openReader(String resource, Charset encoding, Path resolveAgainst) {
//             return new InputStreamReader(getClass().getResourceAsStream(resource), encoding);
//         }
//     }, //
//     file {
//         @Override
//         public Reader openReader(String resource, Charset encoding, Path resolveAgainst) throws IOException {
//             return Files.newBufferedReader(resolveAgainst.resolve(Paths.get(resource)), encoding);
//         }
//     }, //
//     literal {
//         @Override
//         public Reader openReader(String resource, Charset encoding, Path resolveAgainst) {
//             return new StringReader(resource);
//         }
//     };
//     public abstract Reader openReader(String resource, Charset encoding, Path resolveAgainst) throws IOException;
// }


// Path: srcdeps-core/src/test/java/org/srcdeps/core/config/scalar/CharStreamSourceTest.java
import org.junit.Assert;
import org.junit.Test;
import org.srcdeps.core.config.scalar.CharStreamSource.Scheme;

/**
 * Copyright 2015-2018 Maven Source Dependencies
 * Plugin contributors as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.srcdeps.core.config.scalar;


public class CharStreamSourceTest {

    @Test
    public void of() {
        Assert.assertEquals(new CharStreamSource(Scheme.classpath, "/my/path"),