package org.n52.movingcode.runtime.test;

import org.junit.Test;
import org.n52.movingcode.runtime.coderepository.RepositoryUtils;


public class RepoUtilsTest extends MCRuntimeTestConfig{
	
	private static final String someNastyPID = "C:\\global//repo//ID;http://141.30.100.173/my/package/folder/package.for.some.function.zip";
	
	private static final String normalizedNastyPID = "C/global/repo/ID/http/141.30.100.173/my/package/folder/package.for.some.function";
	
	@Test
	public void packageIdNormalizationTest(){
		logger.info(someNastyPID);
		String normID = RepositoryUtils.normalizePackageID(someNastyPID);
		logger.info(normID);
	}
}

@@ -37,16 +37,42 @@
 est;%0D%0A%0D%0A
+import org.junit.Assert;%0D%0A
 import o
@@ -559,20 +559,21 @@
 %09logger.
-info
+trace
 (someNas
@@ -663,13 +663,66 @@
 ger.
-info(
+trace(normID);%0D%0A%09%09Assert.assertEquals(normalizedNastyPID, 
 norm

test now with proper assertion