Compare commits

...

2 commits

Author SHA1 Message Date
86b35874bf Using lorem-rss instead of my server for testing 2023-10-13 13:35:19 -07:00
105850990b Updated versions 2023-10-13 13:34:30 -07:00
3 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
# mobibot
[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.0-7f52ff.svg)](https://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.10-7f52ff.svg)](https://kotlinlang.org)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_mobibot&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
[![GitHub CI](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml/badge.svg)](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml)
[![CircleCI](https://circleci.com/gh/ethauvin/mobibot/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/mobibot/tree/master)

View file

@ -54,12 +54,13 @@ class FeedReaderTest {
index(1).prop(Message::msg).contains("erik.thauvin.net")
}
messages = readFeed("https://www.mobitopia.org/mobibot/logs/2021-10-27.xml")
messages = readFeed("https://lorem-rss.herokuapp.com/feed?length=0")
assertThat(messages, "messages").index(0).prop(Message::msg).contains("nothing")
messages = readFeed("https://www.mobitopia.org/mobibot/logs/2005-10-11.xml", 42)
messages = readFeed("https://lorem-rss.herokuapp.com/feed?length=84", 42)
assertThat(messages, "messages").size().isEqualTo(84)
assertThat(messages.last(), "messages.last").prop(Message::msg).contains("techdigest.tv")
assertThat(messages[messages.size - 2], "messages.size - 2").prop(Message::msg).startsWith("Lorem ipsum")
assertThat(messages.last(), "messages.last").prop(Message::msg).contains("http://example.com/test/")
assertFailure { readFeed("blah") }.isInstanceOf(MalformedURLException::class.java)

View file

@ -1,9 +1,9 @@
#Generated by the Semver Plugin for Gradle
#Wed Oct 04 08:46:27 PDT 2023
version.buildmeta=20231004084627
#Fri Oct 13 13:31:20 PDT 2023
version.buildmeta=20231013133120
version.major=0
version.minor=8
version.patch=0
version.prerelease=rc
version.project=mobibot
version.semver=0.8.0-rc+20231004084627
version.semver=0.8.0-rc+20231013133120