CondaPathUtils { public static String buildCondaPackagePath(final State matcherState) { return String.format("%s/%s/%s-%s-%s%s", path(matcherState), arch(matcherState), name(matcherState), version(matcherState), build(matcherState), format(matcherState)); } private  CondaPathUtils(); static State matcherState(final Context context); static String arch(final State state); static String name(final State state); static String version(final State state); static String buildAssetPath(final State matcherState, final String assetName); static String buildArchAssetPath(final State matcherState, final String assetName); static String buildCondaPackagePath(final State matcherState); static final String RSS_XML; static final String INDEX_HTML; static final String CHANNELDATA_JSON; static final String REPODATA_JSON; static final String REPODATA_JSON_BZ2; static final String REPODATA2_JSON; static final String TAR_BZ2_EXT; static final String CONDA_EXT; }
@Test public void buildTarPackagePathTest() { Map<String, String> tokens = setupTokens(VERSION, MAIN, BUILD, NUMPY, ARCH, ARCH_TAR_PACKAGE); when(state.getTokens()).thenReturn(tokens); String result = buildCondaPackagePath(state); assertThat(result, is(equalTo(PATH + "numpy-3.0.0-123.tar.bz2"))); }
@Test public void buildCondaPackagePathTest() { String result = buildCondaPackagePath(state); assertThat(result, is(equalTo(PATH + "numpy-3.0.0-123.conda"))); }