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
import org.hamcrest.Description; | |
import org.hamcrest.Factory; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeDiagnosingMatcher; | |
import java.util.Optional; | |
import static org.hamcrest.core.IsEqual.equalTo; | |
public class OptionalWithValue<T> extends TypeSafeDiagnosingMatcher<Optional<? extends 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
<?xml version="1.0" encoding="utf-8"?> | |
<Client name="Sony Bravia 2014"> | |
<Identification> | |
<Header name="X-AV-Client-Info" regex=".*KDL-\d{2}[WR][5689]\d{2}B.*" /> | |
<DeviceDescription> | |
<Manufacturer substring="Sony" /> | |
<FriendlyName regex="KDL-\d{2}[WR][5689]\d{2}B.*" /> | |
</DeviceDescription> | |
</Identification> | |
<DeviceDescription> |
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
sqlps -Command { | |
Invoke-Sqlcmd -ServerInstance "SERVER[,PORT]" -Database DB_NAME -Username sa -Password sa -Variable "SchemaName='dbo'" -InputFile "clean-db.sql" | |
} |