/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software 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.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.xwiki.model.internal.reference.converter;

import org.junit.jupiter.api.Test;
import org.xwiki.model.reference.WikiReference;
import org.xwiki.test.junit5.mockito.ComponentTest;
import org.xwiki.test.junit5.mockito.InjectMockComponents;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;

/**
 * Validate {@link WikiReferenceConverter} component.
 * 
 * @version $Id$
 */
@ComponentTest
public class WikiReferenceConverterTest
{
    @InjectMockComponents
    private WikiReferenceConverter converter;

    @Test
    public void convertWikitoString()
    {
        assertNull(this.converter.convert(String.class, null));
        assertEquals("name", this.converter.convert(String.class, new WikiReference("name")));
    }

    @Test
    public void convertWikiFromString()
    {
        assertNull(this.converter.convert(WikiReference.class, null));
        assertEquals(new WikiReference("name"), this.converter.convert(WikiReference.class, "name"));
    }
}

@@ -1356,23 +1356,16 @@
 entTest%0A
-public 
 class Wi
@@ -1470,39 +1470,32 @@
 %0A%0A    @Test%0A    
-public 
 void convertWiki
@@ -1695,15 +1695,8 @@
     
-public 
 void

Remove useless "public" keyword