I hereby claim:
- I am tomasmalmsten on github.
- I am tomasmalmsten (https://keybase.io/tomasmalmsten) on keybase.
- I have a public key whose fingerprint is 41EF A6F5 5D73 D9D8 1897 E2C1 A8C6 D01F D8E0 4E2B
To claim this, I am signing this object:
public int compareTo(final Object _other) throws ClassCastException, NullPointerException { | |
final ExampleClass otherExampleClass= (ExampleClass) _other; | |
return compareThisTo( otherExampleClass); | |
} | |
private int compareThisTo(final ExampleClass _otherExampleClass) { | |
if(equals(_otherExampleClass)) { | |
return 0; | |
} | |
return compareCreatedDates(_otherExampleClass); |
private int compareMeTo(final ExampleClass _otherExampleClass) { | |
if(equals(_otherExampleClass)) { | |
return 0; | |
} | |
return compareCreatedDates(_otherExampleClass); | |
} |
public int compareTo(Object _other) throws ClassCastException, NullPointerException { | |
final ExampleClass otherExampleClass = (ExampleClass) _other; | |
return compareMeTo(otherExampleClass); | |
} |
public int compareTo(final Object _other) throws ClassCastException, NullPointerException { | |
final ExampleClass otherExampleClass = (ExampleClass) _other; | |
if(equals(otherExampleClass)) { | |
return 0; | |
} | |
if(getCreatedDate() == null) { | |
if(otherExampleClass.getCreatedDate() == null) { | |
return 0; | |
} | |
return -1; |
Verifying I am +tomasmalmsten on my passcard. https://onename.com/tomasmalmsten |
package com.tomasmalmsten.matchers | |
import org.hamcrest.Description; | |
import org.hamcrest.Factory; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeMatcher; | |
public class StringMatchesUUIDPattern extends TypeSafeMatcher<String> { | |
private static final String UUID_REGEX = "[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}"; |
I hereby claim:
To claim this, I am signing this object:
test('Simple controller test', function() { | |
ok(scope.nodes.length == 2); | |
}); |
'use strict'; | |
var freecycleApp = angular.module('freecycleApp', []); | |
freecycleApp.controller("NodeController", function($scope) { | |
$scope.nodes = [ | |
{'id': '1122-33-44', 'name': 'MacBook Pro 13" 2010'}, | |
{'id': '4433-2233-454ff', 'name': 'MacBook 13" White'} | |
]; | |
}); |
'use strict'; | |
var injector, ctrl, scope; | |
module('tests', { | |
setup: function() { | |
var appModule = angular.module('freecycleApp'); | |
injector = angular.injector(['ng', 'freecycleApp']); | |
scope = injector.get('$rootScope').$new(); | |
ctrl = injector.get('$controller') |