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
// ====================================== | |
// Gilded Rose Requirements Specification | |
// ====================================== | |
// We are a small inn with a prime location in a prominent city ran by a friendly innkeeper named Allison. | |
// We also buy and sell only the finest goods. | |
// Unfortunately, our goods are constantly degrading in quality as they approach their sell by date. We | |
// have a system in place that updates our inventory for us. | |
// First an introduction to our system: |
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 RxJavaTestRunner extends MockitoJUnitRunner { | |
// private static final TestScheduler SCHEDULER = new TestScheduler(); | |
public RxJavaTestRunner(Class<?> klass) throws InvocationTargetException { | |
super(klass); | |
RxAndroidPlugins.getInstance().reset(); | |
RxAndroidPlugins.getInstance().registerSchedulersHook(new RxAndroidSchedulersHook() { |
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 android.content.Context; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.TextView; | |
import rx.Observable; | |
import rx.subjects.PublishSubject; | |
/** |
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
ext { | |
//Android | |
androidBuildToolsVersion = "23.0.1" | |
androidMinSdkVersion = 15 | |
androidTargetSdkVersion = 23 | |
androidCompileSdkVersion = 23 | |
androidVersionCode = 1 | |
//Libraries |
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="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#core_toolbar { | |
right: 0px; | |
left: 0px; |