This file contains hidden or 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
import com.github.vkorobkov.jfixtures.JFixtures | |
import groovy.transform.CompileStatic | |
import groovy.transform.NamedParam | |
import groovy.transform.NamedVariant | |
import groovy.util.logging.Slf4j | |
import org.junit.jupiter.api.extension.BeforeTestExecutionCallback | |
import org.junit.jupiter.api.extension.ExtensionContext | |
import org.junit.jupiter.api.extension.ExtensionContext.Store | |
import org.springframework.jdbc.core.JdbcTemplate | |
import org.springframework.test.context.junit.jupiter.SpringExtension |
This file contains hidden or 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
import groovy.transform.AnnotationCollector | |
import org.junit.jupiter.api.Tag | |
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc | |
import org.springframework.boot.test.context.SpringBootTest | |
import org.springframework.test.context.ActiveProfiles | |
@SameSpringContextSupport | |
@SpringBootTest | |
@AutoConfigureMockMvc | |
@AnnotationCollector |
- Human creates a deep link hippo://place/drug?id=100 basing on our documentation - we have to describe deeplinks and asssociated screens
- Human put deeplink into Kochava to get universal link
- It opens up receiving the deeplink
- It sees that deeplink is not encrypted
This file contains hidden or 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
#!/bin/sh | |
export TABLE= | |
export SQLCMD=/opt/mssql-tools/bin/sqlcmd | |
export MYSQL_HOST= | |
export MYSQL_DB= | |
export MYSQL_USER=read_only | |
export MYSQL_PASS= |
This file contains hidden or 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
def quickSort(List list, beg = 0, end = list.size() - 1) { | |
if (list.size() < 2) { | |
return | |
} | |
def beg0 = beg | |
def end0 = end | |
def marker = list[beg] | |
while(true) { |
This file contains hidden or 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
import java.util.AbstractCollection; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.Set; | |
public class DecoratedSet<K> extends AbstractCollection<K> implements Set<K> { | |
@FunctionalInterface | |
public interface Decorator<K> { | |
Wrapped<K> wrap(K element); |
This file contains hidden or 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
import groovy.sql.Sql | |
import javax.sql.DataSource | |
class ThreadSafeSql extends Sql implements GroovyInterceptable { | |
private final ThreadLocal<Sql> threadLocal = new ThreadLocal<>() | |
private final DataSource dataSource | |
ThreadSafeSql(DataSource dataSource) { | |
super(dataSource) | |
this.dataSource = dataSource |
This file contains hidden or 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
import org.yaml.snakeyaml.Yaml | |
startTime = System.currentTimeMillis() | |
FIXTURES_DIR = "${project.basedir}/src/test/resources/fixtures" | |
OUTPUT_DIR = project.build.testOutputDirectory | |
OUTPUT_FILE = "$OUTPUT_DIR/test-data.sql" | |
new File(OUTPUT_DIR).mkdir() |