Package com.indeed.proctor.common

Examples of com.indeed.proctor.common.Proctor$DetailedExport


        // Only output matching test names if not null.
        final Collection<String> testNameFilter = ShowHandlerParamUtil.getTestQueryParameters(request);

        final PrintWriter writer = response.getWriter();

        final Proctor proctor = proctorSupplier.get();
        if(proctor == null) {
            writer.println("Did not determine a Proctor instance");
        } else if (testNameFilter != null) {
            proctor.appendTestMatrixFiltered(writer, testNameFilter);
        } else {
            proctor.appendTestMatrix(writer);
        }
    }
View Full Code Here


        // Only output matching test names if not null.
        final Collection<String> testNameFilter = ShowHandlerParamUtil.getTestQueryParameters(request);

        final PrintWriter writer = response.getWriter();

        final Proctor proctor = proctorSupplier.get();
        if(proctor == null) {
            writer.println("Did not determine a Proctor instance");
        } else if (testNameFilter != null) {
            proctor.appendTestsNameFiltered(writer, testNameFilter);
        } else {
            proctor.appendAllTests(writer);
        }
    }
View Full Code Here

     * I don't see any value in using this in an application; you probably should use
     * {@link #determineBucketsInternal(HttpServletRequest, HttpServletResponse, Identifiers, Map, boolean)}
     */
    @VisibleForTesting
    protected ProctorResult determineBucketsInternal(final Identifiers identifiers, final Map<String, Object> context, final Map<String, Integer> forcedGroups) {
        final Proctor proctor = proctorSource.get();
        if (proctor == null) {
            final Map<String, TestBucket> buckets = getDefaultBucketValues();
            final Map<String, Integer> versions = Maps.newHashMap();
            for (final String testName : buckets.keySet()) {
                versions.put(testName, Integer.valueOf(-1));
            }
            return new ProctorResult(Audit.EMPTY_VERSION, buckets, Collections.<String, ConsumableTestDefinition>emptyMap());
        }
        final ProctorResult result = proctor.determineTestGroups(identifiers, context, forcedGroups);
        return result;
    }
View Full Code Here

*
*/
public class TestProctor {
    @Test
    public void test() {
        final Proctor proctor = constructProctor();

        assertEquals("",                calcGroups(proctor, "piafdsff", "AR", "en", 9));
        assertEquals("def2",            calcGroups(proctor, "piafdsff", "IO", "en", 9));
        assertEquals("def2",            calcGroups(proctor, "piafdsff", "UY", "en", 9));
        assertEquals("ghi3",            calcGroups(proctor, "piafdsff", "AR", "pt", 9));
View Full Code Here

TOP

Related Classes of com.indeed.proctor.common.Proctor$DetailedExport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.