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
!definelong resource(relname, resourcename, type, descriptiontext, urltemplate) | |
<b>rel: </b>relname\n<b>resource: </b> resourcename : <i>type</i>\n<b>description: </b> descriptiontext\n<b>url: </b>urltemplate | |
!enddefinelong | |
!definelong resource(relname, resourcename, type, descriptiontext) | |
<b>rel: </b>relname\n<b>resource: </b> resourcename : <i>type</i>\n<b>description: </b> descriptiontext | |
!enddefinelong | |
!definelong resource(relname, resourcename, type) | |
<b>rel: </b>relname\n<b>resource: </b> resourcename : <i>type</i> |
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 RxJavaExceptionTestingTest { | |
private RxJavaExceptionTesting exceptionTesting; | |
@Before | |
public void initialize(){ | |
exceptionTesting = new RxJavaExceptionTesting(); | |
} | |
@Test |
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 final class RxJavaExceptionTesting { | |
public Observable<String> foo1() { | |
return Observable.empty(); | |
} | |
public Observable<String> foo2() { | |
return Observable.error(new MyException()); | |
} |
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
@Test | |
public void testEmptyFlowableToSingle() { | |
Flowable.empty() | |
.flatMapSingle(o -> Single.just("result")) | |
.test() | |
.assertValueCount(0) | |
.assertNoErrors(); | |
//There should have been an error | |
} |
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
@Test | |
public void testEmptyObservableToSingle() { | |
Observable.empty() | |
.flatMapSingle(o -> Single.just("result")) | |
.test() | |
.assertValueCount(0) | |
.assertNoErrors(); | |
//Should there be an error? | |
} |
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
@Test | |
public void testEmptyMaybeToSingle1() { | |
Maybe.empty() | |
.flatMapSingle(o -> Single.just("result")) | |
.test() | |
.assertError(NoSuchElementException.class); | |
} |
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
@Test | |
public void testCompletableToSingle() { | |
Completable.complete() | |
.toSingle(() -> Single.just("result")) | |
.test() | |
.assertValueCount(1) | |
.assertNoErrors(); | |
} |
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
<html> | |
<head> | |
<title>Example | Your Custom Page Title</title> | |
<meta property="og:title" content="Example | Your Custom Page Title" /> | |
<meta property="og:site_name" content="Example" /> | |
<meta property="og:type" content="blog" /> | |
<meta property="og:url" content="https://example.com/path/index.html" /> | |
<meta property="og:description" content="Your Custom Page Description" /> | |
<meta property="og:image" content="https://example.com/nice-image.jpg" /> |
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
var modRewrite = require('connect-modrewrite'); //Make sure to declare this at top of the file | |
. | |
. | |
. | |
livereload: { | |
options: { | |
open: true, | |
middleware: function(connect) { | |
return [ |
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
app.config(function($locationProvider) { | |
$locationProvider.html5Mode({ | |
enabled: true | |
}); | |
}); |