/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libraries-data/src/test/java/com/baeldung/crunch/ToUpperCaseFnUnitTest.java
21 строка
542 B
Eric Martin
Merge pull request #8125 from eugenp/revert-8119-BAEL-3275-2
01 ноя 2019, 04:43
01 ноя 2019, 04:43
3225470
Код
Авторство
О чём код?
package com.baeldung.crunch; import static org.junit.Assert.assertEquals; import org.apache.crunch.impl.mem.emit.InMemoryEmitter; import org.junit.Test; import com.google.common.collect.ImmutableList; public class ToUpperCaseFnUnitTest { @Test public void givenString_whenToUpperCaseFnCalled_UpperCaseStringReturned() { InMemoryEmitter<String> emitter = new InMemoryEmitter<String>(); new ToUpperCaseFn().process("input", emitter); assertEquals(ImmutableList.of("INPUT"), emitter.getOutput()); } }