/*
 * ARX: Powerful Data Anonymization
 * Copyright (C) 2012 - 2014 Florian Kohlmayer, Fabian Prasser
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package org.deidentifier.arx.test;

import java.io.IOException;

import org.deidentifier.arx.examples.Example1;
import org.deidentifier.arx.examples.Example10;
import org.deidentifier.arx.examples.Example11;
import org.deidentifier.arx.examples.Example12;
import org.deidentifier.arx.examples.Example13;
import org.deidentifier.arx.examples.Example16;
import org.deidentifier.arx.examples.Example17;
import org.deidentifier.arx.examples.Example18;
import org.deidentifier.arx.examples.Example19;
import org.deidentifier.arx.examples.Example2;
import org.deidentifier.arx.examples.Example20;
import org.deidentifier.arx.examples.Example21;
import org.deidentifier.arx.examples.Example22;
import org.deidentifier.arx.examples.Example23;
import org.deidentifier.arx.examples.Example3;
import org.deidentifier.arx.examples.Example4;
import org.deidentifier.arx.examples.Example5;
import org.deidentifier.arx.examples.Example6;
import org.deidentifier.arx.examples.Example7;
import org.deidentifier.arx.examples.Example8;
import org.deidentifier.arx.examples.Example9;
import org.junit.Assert;
import org.junit.Test;

public class TestExamples {

    @Test
    public void testExample1() {
        try {
            Example1.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample2() throws IOException {
        try {
            Example2.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample3() {
        try {
            Example3.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample4() {
        try {
            Example4.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample5() {
        try {
            Example5.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample6() {
        try {
            Example6.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample7() {
        try {
            Example7.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample8() {
        try {
            Example8.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample9() {
        try {
            Example9.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample10() {
        try {
            Example10.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample11() {
        try {
            Example11.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample12() {
        try {
            Example12.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample13() {
        try {
            Example13.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample16() {
        try {
            Example16.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample17() {
        try {
            Example17.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample18() {
        try {
            Example18.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample19() {
        try {
            Example19.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample20() {
        try {
            Example20.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }

    @Test
    public void testExample21() {
        try {
            Example21.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }
    
    @Test
    public void testExample22() {
        try {
            Example22.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }
    @Test
    public void testExample23() {
        try {
            Example23.main(null);
        } catch (final Exception e) {
            e.printStackTrace();
            Assert.fail();
        }
    }
}

@@ -1485,16 +1485,112 @@
 mple23;%0A
+import org.deidentifier.arx.examples.Example24;%0Aimport org.deidentifier.arx.examples.Example25;%0A
 import o
@@ -6338,10 +6338,422 @@
 %7D%0A    %7D%0A
+    @Test%0A    public void testExample24() %7B%0A        try %7B%0A            Example24.main(null);%0A        %7D catch (final Exception e) %7B%0A            e.printStackTrace();%0A            Assert.fail();%0A        %7D%0A    %7D%0A    @Test%0A    public void testExample25() %7B%0A        try %7B%0A            Example25.main(null);%0A        %7D catch (final Exception e) %7B%0A            e.printStackTrace();%0A            Assert.fail();%0A        %7D%0A    %7D%0A
 %7D%0A

Add Example24 and Example25 to Unit tests