001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.core.pattern.parser;
015
016import org.junit.Test;
017
018public class OptionTokenizerTest {
019
020    @Test
021    public void testEmpty() {
022
023    }
024
025    //
026    // @Test
027    // public void testEmpty() throws ScanException {
028    // {
029    // List ol = new OptionTokenizer("").tokenize();
030    // List witness = new ArrayList();
031    // assertEquals(witness, ol);
032    // }
033    //
034    // {
035    // List ol = new OptionTokenizer(" ").tokenize();
036    // List witness = new ArrayList();
037    // assertEquals(witness, ol);
038    // }
039    // }
040    //
041    // @Test
042    // public void testSimple() throws ScanException {
043    // {
044    // List ol = new OptionTokenizer("abc").tokenize();
045    // List<String> witness = new ArrayList<String>();
046    // witness.add("abc");
047    // assertEquals(witness, ol);
048    // }
049    // }
050    //
051    // @Test
052    // public void testSingleQuote() throws ScanException {
053    // {
054    // List ol = new OptionTokenizer("' '").tokenize();
055    // List<String> witness = new ArrayList<String>();
056    // witness.add(" ");
057    // assertEquals(witness, ol);
058    // }
059    //
060    // {
061    // List ol = new OptionTokenizer("' x\t'").tokenize();
062    // List<String> witness = new ArrayList<String>();
063    // witness.add(" x\t");
064    // assertEquals(witness, ol);
065    // }
066    //
067    // {
068    // List ol = new OptionTokenizer("' x\\t'").tokenize();
069    // List<String> witness = new ArrayList<String>();
070    // witness.add(" x\\t");
071    // assertEquals(witness, ol);
072    // }
073    //
074    // {
075    // List ol = new OptionTokenizer("' x\\''").tokenize();
076    // List<String> witness = new ArrayList<String>();
077    // witness.add(" x\\'");
078    // assertEquals(witness, ol);
079    // }
080    // }
081    //
082    //
083    //
084    // @Test
085    // public void testDoubleQuote() throws ScanException {
086    // {
087    // List ol = new OptionTokenizer("\" \"").tokenize();
088    // List<String> witness = new ArrayList<String>();
089    // witness.add(" ");
090    // assertEquals(witness, ol);
091    // }
092    //
093    // {
094    // List ol = new OptionTokenizer("\" x\t\"").tokenize();
095    // List<String> witness = new ArrayList<String>();
096    // witness.add(" x\t");
097    // assertEquals(witness, ol);
098    // }
099    //
100    // {
101    // List ol = new OptionTokenizer("\" x\\t\"").tokenize();
102    // List<String> witness = new ArrayList<String>();
103    // witness.add(" x\\t");
104    // assertEquals(witness, ol);
105    // }
106    //
107    // {
108    // List ol = new OptionTokenizer("\" x\\\"\"").tokenize();
109    // List<String> witness = new ArrayList<String>();
110    // witness.add(" x\\\"");
111    // assertEquals(witness, ol);
112    // }
113    // }
114    //
115    // @Test
116    // public void testMultiple() throws ScanException {
117    // {
118    // List ol = new OptionTokenizer("a, b").tokenize();
119    // List<String> witness = new ArrayList<String>();
120    // witness.add("a");
121    // witness.add("b");
122    // assertEquals(witness, ol);
123    // }
124    // {
125    // List ol = new OptionTokenizer("'a', b").tokenize();
126    // List<String> witness = new ArrayList<String>();
127    // witness.add("a");
128    // witness.add("b");
129    // assertEquals(witness, ol);
130    // }
131    // {
132    // List ol = new OptionTokenizer("'', b").tokenize();
133    // List<String> witness = new ArrayList<String>();
134    // witness.add("");
135    // witness.add("b");
136    // assertEquals(witness, ol);
137    // }
138    // }
139    //
140}