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
internal class PasswordValidatorTest { | |
private val validator = PasswordValidator() | |
@ParameterizedTest(name = "given \"{0}\", when validating the password, then it should return {1}") | |
@MethodSource("passwordArguments") | |
fun `given input password, when validating it, then is should return if it is valid`( | |
password: String, | |
expected: Boolean | |
) { |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
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
/* | |
Suppose we need a query searching for all Equipments that are not being used in any ServiceOrder. | |
It means, given the following query: | |
select this_.* | |
from equipment this_ | |
where this_.status == 'enabled' | |
and not exists (select so_.id as y0_ from service_order so_ where (so_.equipment_id=this_.id)) | |
order by this_.serial_number asc; |