Skip to content

fix test cases

fix test cases #68

GitHub Actions / Test Results failed Jun 10, 2024 in 0s

2 fail, 7 skipped, 82 pass in 41s

91 tests  ±0   82 ✅  - 1   41s ⏱️ -1s
20 suites ±0    7 💤 ±0 
20 files   ±0    2 ❌ +1 

Results for commit ff40090. ± Comparison against earlier commit 33ac74e.

Annotations

Check warning on line 0 in thc.controller.FinanceControllerIntegrationTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

indexQuotes_shouldReturnMajorIndexes (thc.controller.FinanceControllerIntegrationTest) failed

build/test-results/test/TEST-thc.controller.FinanceControllerIntegrationTest.xml [took 0s]
Raw output
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:87)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertTrue(Assert.java:53)
	at thc.controller.FinanceControllerIntegrationTest.indexQuotes_shouldReturnMajorIndexes(FinanceControllerIntegrationTest.java:36)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:76)
	at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at jdk.proxy2/jdk.proxy2.$Proxy5.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:119)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:66)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check warning on line 0 in thc.parser.finance.Money18LocalIndexQuoteRequestTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

shouldReturnAllIndexQuotes (thc.parser.finance.Money18LocalIndexQuoteRequestTest) failed

build/test-results/test/TEST-thc.parser.finance.Money18LocalIndexQuoteRequestTest.xml [took 0s]
Raw output
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:87)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertTrue(Assert.java:53)
	at thc.parser.finance.Money18LocalIndexQuoteRequestTest.shouldReturnAllIndexQuotes(Money18LocalIndexQuoteRequestTest.java:32)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at jdk.proxy2/jdk.proxy2.$Proxy5.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:119)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:66)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

7 skipped tests found

There are 7 skipped tests, see "Raw output" for the full list of skipped tests.
Raw output
thc.controller.DictionaryControllerIntegrationTest ‑ queryToward_shouldReturnResult
thc.controller.ForumControllerIntegrationTest ‑ list_MoviePage1_ShouldReturnDescendingForumThreadsNotOlderThanConfig
thc.controller.ForumControllerIntegrationTest ‑ list_MusicPage1_ShouldReturnDescendingForumThreadsNotOlderThanConfig
thc.controller.SearchControllerIntegrationTest ‑ searchImage_givenRubbish_shouldReturnEmptyWebItemArray
thc.controller.SearchControllerIntegrationTest ‑ searchImage_shouldReturnWebItems
thc.parser.finance.EtnetStockQuoteRequestTest ‑ getStockQuote_Given941_ShouldReturn941StockQuote
thc.parser.forum.ForumThreadParserTest ‑ parse_GivenRightURL_ShouldReturnSomeForumThread

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

91 tests found

There are 91 tests, see "Raw output" for the full list of tests.
Raw output
thc.controller.DictionaryControllerIntegrationTest ‑ queryAnymore_shouldReturnResult
thc.controller.DictionaryControllerIntegrationTest ‑ queryCenter_shouldReturnResult
thc.controller.DictionaryControllerIntegrationTest ‑ queryProgram_shouldReturnResult
thc.controller.DictionaryControllerIntegrationTest ‑ querySenior_shouldReturnResult
thc.controller.DictionaryControllerIntegrationTest ‑ queryToward_shouldReturnResult
thc.controller.DictionaryControllerIntegrationTest ‑ query_notAWord_shouldReturn404
thc.controller.DictionaryControllerIntegrationTest ‑ query_shouldReturnResult
thc.controller.DictionaryControllerTest ‑ cache_empty_result_if_word_cannot_get_from_online
thc.controller.DictionaryControllerTest ‑ http_return_is_cached
thc.controller.FinanceControllerIntegrationTest ‑ getEachIndexConstituents_shouldReturnSomeStocks
thc.controller.FinanceControllerIntegrationTest ‑ hkQuoteSingle_givenHSBC_shouldReturnQuote
thc.controller.FinanceControllerIntegrationTest ‑ hkquotes_givenHsiCodes_shouldReturnListOfStockQuote
thc.controller.FinanceControllerIntegrationTest ‑ hsinetReport_queryOnHoliday_shouldReturnNAStockQuote
thc.controller.FinanceControllerIntegrationTest ‑ indexQuotes_shouldReturnMajorIndexes
thc.controller.FinanceControllerTest ‑ hkQuotes_givenNullSource_shouldProcessCorrectly
thc.controller.FinanceControllerTest ‑ hkQuotes_givenWrongSource_shouldProcessCorrectly
thc.controller.FinanceControllerTest ‑ hkQuotes_withSpecificSource_useSpecificParser
thc.controller.ForumControllerIntegrationTest ‑ list_MoviePage1_ShouldReturnDescendingForumThreadsNotOlderThanConfig
thc.controller.ForumControllerIntegrationTest ‑ list_MusicPage1_ShouldReturnDescendingForumThreadsNotOlderThanConfig
thc.controller.SearchControllerIntegrationTest ‑ searchImage_givenRubbish_shouldReturnEmptyWebItemArray
thc.controller.SearchControllerIntegrationTest ‑ searchImage_shouldReturnWebItems
thc.controller.SearchControllerTest ‑ differentQueryIsNotCached
thc.controller.SearchControllerTest ‑ httpReturnIsCached
thc.parser.finance.AastockStockQuoteRequestTest ‑ getStockQuote_Given2800_ShouldReturn2800StockQuote
thc.parser.finance.AastockStockQuoteRequestTest ‑ getStockQuote_Given7288_ShouldReturnCode7288
thc.parser.finance.AastockStockQuoteRequestTest ‑ getStockQuote_Given941_ShouldReturn941StockQuote
thc.parser.finance.AastockStockQuoteRequestTest ‑ getStockQuote_GivenCBBCCode_ShouldReturnQuote
thc.parser.finance.EtnetStockQuoteRequestTest ‑ getStockQuote_Given941_ShouldReturn941StockQuote
thc.parser.finance.HSINetRequestTest ‑ parse_givenVeryOldDate_ShouldNotFound
thc.parser.finance.HSINetRequestTest ‑ parse_givenYesterday_ShouldReturnHSCEI
thc.parser.finance.HSINetRequestTest ‑ parse_givenYesterday_ShouldReturnHSI
thc.parser.finance.HistoryQuoteRequestTest ‑ getPreviousYearQuote_GivenLastYear0001_ShouldReturnPriceOver10
thc.parser.finance.HistoryQuoteRequestTest ‑ getQuoteAtDate_GivenHSIAndHSCEI_ShouldReturnCorrectPrice
thc.parser.finance.ISharesConstituentParserTest ‑ parseMSCIHK_ShouldReturnCorrectStockCodes
thc.parser.finance.Money18LocalIndexQuoteRequestTest ‑ shouldReturnAllIndexQuotes
thc.parser.finance.Money18StockQuoteRequestTest ‑ getStockQuote_Given2800_ShouldReturn2800StockQuote
thc.parser.finance.Money18StockQuoteRequestTest ‑ getStockQuote_Given7288_ShouldReturnCode7288
thc.parser.finance.Money18StockQuoteRequestTest ‑ getStockQuote_Given941_ShouldReturn941StockQuote
thc.parser.finance.Money18StockQuoteRequestTest ‑ getStockQuote_GivenCBBCCode_ShouldReturnQuote
thc.parser.finance.Money18WorldIndexQuoteRequestTest ‑ shouldReturnAllIndexQuotes
thc.parser.finance.YahooStockQuoteRequestTest ‑ getStockQuote_Given2800_ShouldReturn2800StockQuote
thc.parser.finance.YahooStockQuoteRequestTest ‑ getStockQuote_Given7288_ShouldReturnCode7288
thc.parser.finance.YahooStockQuoteRequestTest ‑ getStockQuote_Given941_ShouldReturn941StockQuote
thc.parser.forum.ForumThreadParserTest ‑ parse_GivenRightURL_ShouldReturnSomeForumThread
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseBanana
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseBird
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseBusstop
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseCar
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseCat
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseChurch
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseCow
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseFailGetContent
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseFebruary
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseFire
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseFit
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseFoot
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseFrog
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseHead
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseJoke
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseKite
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseLemon
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseLuck
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseMeasure
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseName
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseOrange
thc.parser.language.CambridgeDictionaryParserTest ‑ testParsePair
thc.parser.language.CambridgeDictionaryParserTest ‑ testParsePeak
thc.parser.language.CambridgeDictionaryParserTest ‑ testParsePet
thc.parser.language.CambridgeDictionaryParserTest ‑ testParsePoor
thc.parser.language.CambridgeDictionaryParserTest ‑ testParsePower
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseRoad
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseRoom
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseShine
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseSing
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseStar
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseTall
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseTear
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseThey
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseThin
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseToy
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseVote
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseWild
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseYet
thc.parser.language.CambridgeDictionaryParserTest ‑ testParseZinc
thc.parser.language.DictionaryAPIRequestTest ‑ getSubDirectory
thc.parser.language.DictionaryAPIRequestTest ‑ testParseBanana
thc.parser.language.DictionaryAPIRequestTest ‑ testParseFailResult
thc.parser.search.GoogleImageSearchRequestTest ‑ givenAllImageSize_shouldNotSetImageSizeInParam
thc.parser.search.GoogleImageSearchRequestTest ‑ parse_givenFailedResponse_shouldReturnEmptyList
thc.parser.search.GoogleImageSearchRequestTest ‑ query_givenNoAPIKey_shouldThrowException
thc.parser.search.GoogleImageSearchRequestTest ‑ query_shouldReturnWebItems