Project

General

Profile

1
package eu.dnetlib.data.utils;
2

    
3
import static org.junit.Assert.assertEquals;
4

    
5
import org.junit.Test;
6

    
7
public class XsltFunctionsTest {
8

    
9
	@Test
10
	public void testCleanDoi_1() {
11
		assertEquals("10.3233/faia200182", XsltFunctions.cleanDoi("  10.3233/FAIA200182  "));
12
	}
13

    
14
	@Test
15
	public void testCleanDoi_2() {
16
		assertEquals("", XsltFunctions.cleanDoi(""));
17
	}
18

    
19
	@Test
20
	public void testCleanDoi_3() {
21
		assertEquals("", XsltFunctions.cleanDoi(null));
22
	}
23

    
24
}
(2-2/2)