package org.gcube.context.names; import java.io.File; import java.util.Map; import org.gcube.context.authorization.TokensUtil; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class TestContextList extends ContextTest { private static final Logger logger = LoggerFactory.getLogger(TokensUtil.class); @Test public void test() throws Exception { ContextTest.setContextByName("/pred4s"); File src = new File("src"); File test = new File(src, "test"); File resources = new File(test, "resources"); File outputFile = new File(resources, "output.txt"); ContextList contextList = new ContextList(outputFile); contextList.all(); } @Test public void generateTokens() throws Exception { Map tokens = TokensUtil.getTokenForContexts("luca.frosini", "gCat"); logger.debug("{}", tokens); } }