Skip to content

Instantly share code, notes, and snippets.

View Saulis's full-sized avatar

Sauli Tähkäpää Saulis

View GitHub Profile
@Saulis
Saulis / After
Created August 14, 2012 08:14
Refactoring PurchaseSenderTests
[TestMethod]
public void SendPurchase_CustomerDoesNotExist_CustomerCreated_StatusOK()
{
SetPurchaseCustomerSsnTo(NonexistingCustomerSsn);
SendPurchaseResult result = sut.SendFromWebService(purchase);
Assert.AreEqual(SendPurchaseResultType.STATUS_OK, result.Type);
}
@Saulis
Saulis / gist:9363939
Created March 5, 2014 09:20
VAudio unit testing using GwtMockito
/*
* Copyright 2000-2013 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
get-process iexplore | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process IEDriverServer | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process chrome | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process chromedriver | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process firefox | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process

I Agree with everything,

Sincerely,

<base href="https://polygit.org/vaadin-combo-box+vaadin+v1.3.0/polymer+polymer+v1.7.0/components/">
<script src="webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="polymer/polymer.html">
<link rel="import" href="vaadin-combo-box/vaadin-combo-box.html">
<link rel="import" href="iron-ajax/iron-ajax.html">
<link rel="import" href="paper-item/all-imports.html">
<dom-module id="regex-highlighter">
<template>
[
{"path":"./bower_components","name":"bower_components","children":[{"path":"bower_components/accessibility-developer-tools","name":"accessibility-developer-tools","children":[{"path":"bower_components/accessibility-developer-tools/.bower.json","name":".bower.json","size":905,"extension":".json"},{"path":"bower_components/accessibility-developer-tools/Changelog.md","name":"Changelog.md","size":7129,"extension":".md"},{"path":"bower_components/accessibility-developer-tools/LICENSE","name":"LICENSE","size":11358,"extension":""},{"path":"bower_components/accessibility-developer-tools/README.md","name":"README.md","size":10729,"extension":".md"},{"path":"bower_components/accessibility-developer-tools/bower.json","name":"bower.json","size":596,"extension":".json"},{"path":"bower_components/accessibility-developer-tools/dist","name":"dist","children":[{"path":"bower_components/accessibility-developer-tools/dist/js","name":"js","children":[{"path":"bower_components/accessibility-developer-tools/dist/js/axs_testin