// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/PathConverterContext.java
// public final class PathConverterContext {
//     private static final StringPathConverter STRING_PATH_CONVERTER = new StringPathConverter();
//     private static final EnumPathConverter ENUM_PATH_CONVERTER = new EnumPathConverter();
//     private static final NumberPathConverter NUMBER_PATH_CONVERTER = new NumberPathConverter();
//     private static final BooleanPathConverter BOOLEAN_PATH_CONVERTER = new BooleanPathConverter();
//     private static final TimePathConverter TIME_PATH_CONVERTER = new TimePathConverter();
//     private static final DateTimePathConverter DATE_TIME_PATH_CONVERTER = new DateTimePathConverter();
//     private static final DatePathConverter DATE_PATH_CONVERTER = new DatePathConverter();
//     private static final DefaultCollectionPathConverter<Object, SimpleExpression<? super Object>,
//             Collection<Object>, CollectionPathBase<Collection<Object>,
//             Object,
//             SimpleExpression<? super Object>>> DEFAULT_COLLECTION_PATH_CONVERTER = new DefaultCollectionPathConverter<>();
//     private final static ImmutableMap<Class<? extends Path>, PathConverter> map = ImmutableMap.<Class<? extends Path>, PathConverter>builder()
//             .put(StringPath.class, STRING_PATH_CONVERTER)
//             .put(EnumPath.class, ENUM_PATH_CONVERTER)
//             .put(NumberPath.class, NUMBER_PATH_CONVERTER)
//             .put(BooleanPath.class, BOOLEAN_PATH_CONVERTER)
//             .put(TimePath.class, TIME_PATH_CONVERTER)
//             .put(DateTimePath.class, DATE_TIME_PATH_CONVERTER)
//             .put(DatePath.class, DATE_PATH_CONVERTER)
//             .put(ListPath.class, DEFAULT_COLLECTION_PATH_CONVERTER)
//             .put(SetPath.class, DEFAULT_COLLECTION_PATH_CONVERTER)
//             .put(CollectionPath.class, DEFAULT_COLLECTION_PATH_CONVERTER)
//             .build();
// 
//     public static PathConverter getOperator(Path path) {
//         return map.get(path.getClass());
//     }
// }


import com.github.vineey.rql.querydsl.filter.converter.PathConverterContext;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/*
* MIT License
* 
* Copyright (c) 2016 John Michael Vincent S. Rustia
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* 
*/
package com.github.vineey.rql.querydsl.filter;


/**
 * @author vrustia - 4/17/16.
 */
@RunWith(JUnit4.class)
public class PathConverterContextTest {
    @BeforeClass
    public static void init(){
// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/main/java/com/github/vineey/rql/querydsl/filter/converter/PathConverterContext.java
// public final class PathConverterContext {
//     private static final StringPathConverter STRING_PATH_CONVERTER = new StringPathConverter();
//     private static final EnumPathConverter ENUM_PATH_CONVERTER = new EnumPathConverter();
//     private static final NumberPathConverter NUMBER_PATH_CONVERTER = new NumberPathConverter();
//     private static final BooleanPathConverter BOOLEAN_PATH_CONVERTER = new BooleanPathConverter();
//     private static final TimePathConverter TIME_PATH_CONVERTER = new TimePathConverter();
//     private static final DateTimePathConverter DATE_TIME_PATH_CONVERTER = new DateTimePathConverter();
//     private static final DatePathConverter DATE_PATH_CONVERTER = new DatePathConverter();
//     private static final DefaultCollectionPathConverter<Object, SimpleExpression<? super Object>,
//             Collection<Object>, CollectionPathBase<Collection<Object>,
//             Object,
//             SimpleExpression<? super Object>>> DEFAULT_COLLECTION_PATH_CONVERTER = new DefaultCollectionPathConverter<>();
//     private final static ImmutableMap<Class<? extends Path>, PathConverter> map = ImmutableMap.<Class<? extends Path>, PathConverter>builder()
//             .put(StringPath.class, STRING_PATH_CONVERTER)
//             .put(EnumPath.class, ENUM_PATH_CONVERTER)
//             .put(NumberPath.class, NUMBER_PATH_CONVERTER)
//             .put(BooleanPath.class, BOOLEAN_PATH_CONVERTER)
//             .put(TimePath.class, TIME_PATH_CONVERTER)
//             .put(DateTimePath.class, DATE_TIME_PATH_CONVERTER)
//             .put(DatePath.class, DATE_PATH_CONVERTER)
//             .put(ListPath.class, DEFAULT_COLLECTION_PATH_CONVERTER)
//             .put(SetPath.class, DEFAULT_COLLECTION_PATH_CONVERTER)
//             .put(CollectionPath.class, DEFAULT_COLLECTION_PATH_CONVERTER)
//             .build();
// 
//     public static PathConverter getOperator(Path path) {
//         return map.get(path.getClass());
//     }
// }


// Path: rsql-querydsl-parent/rsql-querydsl-filter/src/test/java/com/github/vineey/rql/querydsl/filter/PathConverterContextTest.java
import com.github.vineey.rql.querydsl.filter.converter.PathConverterContext;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/*
* MIT License
* 
* Copyright (c) 2016 John Michael Vincent S. Rustia
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* 
*/
package com.github.vineey.rql.querydsl.filter;


/**
 * @author vrustia - 4/17/16.
 */
@RunWith(JUnit4.class)
public class PathConverterContextTest {
    @BeforeClass
    public static void init(){
        new PathConverterContext();