Questions tagged [turbine]

107 questions
1
vote
1 answer

Lifetime management in mvc turbine?

How can I manage the lifetime of my services in mvc turbine (using Unity)? I have an ISearchService implementation LuceneSearchService that takes an IConfigurationService and ILoggerService. Currently my searchservice registration looks like…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
1
vote
2 answers

Parameterized controller constructor never gets hit

With my pet project I'm trying to learn to use Turbine as a DI container. I'm registering unity as locatorprovider as such: static MvcApplication() { ServiceLocatorManager.SetLocatorProvider(() => new UnityServiceLocator()); } My user…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
1
vote
1 answer

Java heap out of memory but not really

So getting this error when trying to render a page on using Velocity via Turbine servlet. The thing is I have tons of memory, and the servlet itself never crashes. It just fails on this request. The page it's trying to render is maybe 10M. Anyone…
Sheldon Ross
  • 5,364
  • 7
  • 31
  • 37
0
votes
0 answers

how to test stateFlows when emitting multiple items

I'm trying to write an unit test for following method in ViewModel Class, but test is always failing on assert items, expected:
Sam
  • 6,215
  • 9
  • 71
  • 90
0
votes
2 answers

Kotlin flow test not emitting all value

I am very new in Unit testing , i am trying to test my flow using Turbine library, it is not emitting all value, here is my test fun `send function should emit Loading and Content states`() = runTest { // Arrange val userProfile =…
0
votes
0 answers

how to unit test StateFlow event with lambdas using MockK and Turbine

I am trying to unit test the onSignOutTapped method, but I am always getting an assertion failure due to the function parameters in the AlertDialogData object. I am trying to find a way to assert this event, but I am not sure what I am doing wrong.…
Sam
  • 6,215
  • 9
  • 71
  • 90
0
votes
0 answers

Unable to test MutableStateflow in android Kotlin

I am trying to test a function in viewmodel that using a flow to emit value, here is the viewmodel code fun getData(searchResult: AddressSearchResult, lat: String, long: String) = viewModelScope.launch { flow { …
Jitendra Prajapati
  • 1,002
  • 1
  • 10
  • 33
0
votes
1 answer

Unit testing coroutine StateFlow

I am trying to test this StateFlow which lives in a ViewModel and receives data from a UseCase. val data: StateFlow = getDataUseCase.execute(Unit).stateIn(viewModelScope, Lazily, Data()) I have written this test using Mockk and…
0
votes
0 answers

simulink model of wind turbine lqg regulation does not work properly

I have simulated the following block diagram with consists of a wind turbine state space with kalman filter, full state feedback and full state observer suggested by an article which I uploaded: I don't know why I don't get the same output as the…
0
votes
0 answers

Android Turbine won't triggers event from liveData that converted to flow by .asFlow()

Turbine is very handily tool for test flows. But I have an issue when convert live data to flow like: fun foo( ): Flow = bar().asFlow() .map { -> } And then in test class: @ExperimentalCoroutinesApi val testDispatcher:…
Mahdi
  • 6,139
  • 9
  • 57
  • 109
0
votes
1 answer

Unit test fail with Error(MockKException) for MockResponse()

I have a Client that will make a request to a GraphQL end point as below import com.apollographql.apollo.ApolloClient internal class GraphQLClient(apolloClient:ApolloClient, retryStrategy:RetryStrategy){ override fun
HMK
  • 383
  • 1
  • 5
  • 18
0
votes
0 answers

Quartz - Unable to restart scheduler

I have a legacy web application using quartz 1.5.0, wraped using fulcrum. After a system crash, when restarting Apache tomcat (hosting the application) I get an error: Caused by: org.quartz.ObjectAlreadyExistsException: Unable to store Trigger with…
Pantelis Natsiavas
  • 5,293
  • 5
  • 21
  • 36
0
votes
1 answer

org.springframework.cloud.netflix.hystrix.dashboard.HystrixDashboardConfiguration$ProxyStreamServlet.doGet - Spring Cloud Turbine Streams

I'm working on Spring Boot v2.2.6.RELEASE + Eureka + Cloud Config + Hystrix + Turbine Example. Insipration from the https://app.pluralsight.com/course-player?clipId=771ae7a6-e2eb-465a-b7ea-99c8a5531a43. In this example, I'm looking to aggregate the…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Spring Boot v2.2.6.RELEASE and Turbine - Unable to aggregate the metrix

I am working on Spring Boot v2.2.6.RELEASE + Eureka + Hystrix and Turbine. Before posting this question I went through many links like: Spring Boot Turbine Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream Turbine Dashboard…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Any reference implementation for Netflix turbine with non hystrix server side events

I am trying to feed resilence4j (circuit breaker) based events to turbine stream monitor. we have turbine stream aggregator that is already consuming several hystrix streams from bunch of micro services. New microservices are all being written based…