- no upfront installation/agents on remote/slave machines - ssh should be enough
- application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
- configuration templating
- environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
- deployment process run from Jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* See the NOTICE file distributed with this work for additional | |
* information regarding copyright ownership. | |
* | |
* This is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU Lesser General Public License as | |
* published by the Free Software Foundation; either version 2.1 of | |
* the License, or (at your option) any later version. | |
* | |
* This software is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import static tdd.huffman.Bit; | |
public class BitOutputStream { | |
public void write(Bit bit) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.util.List; | |
import static java.util.Arrays.asList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import static tdd.huffman.Bit.one; | |
import static tdd.huffman.Bit.zero; | |
public class BitOutputStream { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BinaryTree<T> { | |
public static<T> BinaryTree<T> newTerminalNode(T nodeValue) { | |
throw new UnsupportedOperationException(); | |
} | |
public static<T> BinaryTree<T> newNonTerminalNode(BinaryTree<T> leftTree, BinaryTree<T> rightTree) { | |
throw new UnsupportedOperationException(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import org.junit.jupiter.api.Test; | |
import java.util.ArrayList; | |
import java.util.List; | |
import static java.util.Arrays.asList; | |
import static org.assertj.core.api.Assertions.assertThat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BinaryTree<T> { | |
public static<T> BinaryTree<T> newTerminalNode(T nodeValue) { | |
throw new UnsupportedOperationException(); | |
} | |
public static<T> BinaryTree<T> newNonTerminalNode(BinaryTree<T> leftTree, BinaryTree<T> rightTree) { | |
throw new UnsupportedOperationException(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import lombok.AccessLevel; | |
import lombok.AllArgsConstructor; | |
import lombok.Value; | |
import java.util.function.Consumer; | |
public class BinaryTree<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tdd.huffman; | |
import lombok.AccessLevel; | |
import lombok.AllArgsConstructor; | |
import lombok.Value; | |
import java.util.function.Consumer; | |
@Value | |
@AllArgsConstructor(access = AccessLevel.PRIVATE) |
OlderNewer