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
List<User> users = getUsers(); | |
assertThat(users) | |
.extracting("firstname", "lastname") | |
.containsExactlyInAnyOrder( | |
tuple("Jane", "Doe"), | |
tuple("Jiminy", "Cricket") | |
); |
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 org.igorski.tests; | |
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.MethodOrderer; | |
import org.junit.jupiter.api.Order; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.TestInstance; | |
import org.junit.jupiter.api.TestMethodOrder; | |
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
@ExtendWith(MockitoExtension.class) | |
class PersonTest { | |
@Mock | |
PinProvider pinProvider; | |
@Test | |
public void shouldCreatePersonWithCorrectPin() { | |
String samplePin = "samplePin"; | |
when(pinProvider.getPin()).thenReturn(samplePin); |
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
String fileDownloadUri = ServletUriComponentsBuilder.fromCurrentContextPath() | |
.path("/downloadFile/") | |
.path(productImage.getPath()) | |
.toUriString(); |
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 io.aktivator; | |
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; | |
import org.keycloak.admin.client.Keycloak; | |
import org.keycloak.admin.client.KeycloakBuilder; | |
import org.keycloak.admin.client.resource.RealmResource; | |
import org.keycloak.admin.client.resource.RolesResource; | |
import org.keycloak.admin.client.resource.UsersResource; | |
import org.keycloak.representations.AccessTokenResponse; | |
import org.keycloak.representations.idm.ClientRepresentation; |
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 co.igorski.examples; | |
import org.junit.platform.launcher.Launcher; | |
import org.junit.platform.launcher.LauncherDiscoveryRequest; | |
import org.junit.platform.launcher.TestPlan; | |
import org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder; | |
import org.junit.platform.launcher.core.LauncherFactory; | |
import stubs.classes.DummyTest; | |
import static org.junit.platform.engine.discovery.ClassNameFilter.includeClassNamePatterns; |
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
# Created at 2018-11-05T23:08:36.234 | |
Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream '23:08:36.212 [main] INFO org.igorski.listeners.BasicListener - Creating BasicListener instance.'. | |
java.lang.IllegalArgumentException: Stream stdin corrupted. Expected comma after third character in command '23:08:36.212 [main] INFO org.igorski.listeners.BasicListener - Creating BasicListener instance.'. | |
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient$OperationalData.<init>(ForkClient.java:507) | |
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.processLine(ForkClient.java:210) | |
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:177) | |
at org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:88) | |
at java.base/java.lang.Thread.run(Thread.java:844) |
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
<link rel="import" href="../../bower_components/polymer/polymer.html"> | |
<link rel="import" href="../../bower_components/iron-form/iron-form.html"> | |
<link rel="import" href="../../bower_components/vaadin-text-field/src/vaadin-text-field.html"> | |
<link rel="import" href="../../bower_components/vaadin-text-field/src/vaadin-password-field.html"> | |
<link rel="import" href="../../bower_components/vaadin-button/src/vaadin-button.html"> | |
<dom-module id="login-view"> | |
<template> | |
<style> |
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
@Tag("main-panel-three") | |
@HtmlImport("src/main-panel-three.html") | |
@StyleSheet("styles.css") | |
@Route("three") | |
@Viewport("width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes") | |
@Theme(value = Lumo.class, variant = Lumo.DARK) | |
public class MainPanelHasComponents extends PolymerTemplate<MainPanelModel> implements RouterLayout, HasComponents { | |
@Id("menu-three") |
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 RuleOne implements TestRule { | |
@Override | |
public Statement apply(Statement statement, Description description) { | |
System.out.println("========== ONE ============"); | |
return new Statement() { | |
@Override | |
public void evaluate() throws Throwable { | |
System.out.println("Evaluation ONE!"); | |
statement.evaluate(); | |
} |
NewerOlder