jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FSchumacher <...@git.apache.org>
Subject [GitHub] jmeter pull request #342: More edge cases for changeCase function and slight...
Date Sat, 25 Nov 2017 15:39:54 GMT
Github user FSchumacher commented on a diff in the pull request:

    https://github.com/apache/jmeter/pull/342#discussion_r153048358
  
    --- Diff: test/src/org/apache/jmeter/functions/TestChangeCaseExamples.java ---
    @@ -0,0 +1,117 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + *
    + */
    +
    +package org.apache.jmeter.functions;
    +
    +import static org.junit.Assert.*;
    +
    +import java.util.Arrays;
    +import java.util.Collection;
    +import java.util.List;
    +import java.util.stream.Collectors;
    +
    +import org.apache.jmeter.engine.util.CompoundVariable;
    +import org.apache.jmeter.functions.ChangeCase.ChangeCaseMode;
    +import org.apache.jmeter.junit.JMeterTestCase;
    +import org.apache.jmeter.samplers.SampleResult;
    +import org.apache.jmeter.threads.JMeterContext;
    +import org.apache.jmeter.threads.JMeterContextService;
    +import org.apache.jmeter.threads.JMeterVariables;
    +import org.hamcrest.CoreMatchers;
    +import org.junit.Before;
    +import org.junit.Test;
    +import org.junit.runner.RunWith;
    +import org.junit.runners.Parameterized;
    +import org.junit.runners.Parameterized.Parameters;
    +
    +@RunWith(Parameterized.class)
    +public class TestChangeCaseExamples extends JMeterTestCase {
    +
    +    @Parameters
    +    public static Collection<Object[]> data() {
    +        return Arrays.asList(new Object[][] { { " spaces before and after ",
    +                new String[] { " SPACES BEFORE AND AFTER ",
    --- End diff --
    
    This would be a perfect showcase for spock, don't you think?


---

Mime
View raw message