Does the Spring testing framework support JUnit 3? - junit

Does the Spring testing framework support JUnit 3?
There is no information on what version of Spring testing framework supports JUnit version 3.
And from what version is only JUnit 4 supported?

JUnit 3
The Spring Framework had support for JUnit 3.8 from Spring Framework 1.1.1 through 3.2.x.
JUnit 3.8 support was removed in Spring Framework 4.0.
JUnit 4
The Spring Framework has had support for JUnit 4.x since Spring Framework 2.5. That support still exists.
As of Spring Framework 4.3, JUnit 4.12 or higher is required. For other minimum JUnit 4 version requirements, check the documentation of the version of Spring that you are using.
JUnit 5
Spring Framework 5.0 introduced support for JUnit Jupiter (a.k.a., JUnit 5).
Consult the Testing chapter in the Spring Reference Manual for further details.

Related

MySQL giving error of .NET framework 4.0.30319

Currently I have windows 10 and .NET framework 4.8 in my laptop, when I am trying to install MySQL 8.0.23 with 4.8 .NET framework it gives me error that I mentioned below:
MySQLInstallerLauncher.exe - .NET Framework Initialization Error
To run this application, you first must install one of the following version of .NET Framework :v4.0.30319.

Can we implement client side load balancing with Ribbon with Spring boot 2.5.2?

we are trying to upgrade our code from spring boot 1.x to spring boot 2.5.2 and we were taking advantage of ribbon for client side load balancing with older version of spring boot (1.x).
Now, when I'm referring to the spring cloud netflix documentation, they are still referring to 'ribbon' for client side load balancing here
https://spring.io/projects/spring-cloud-netflix#overview.
But, some other place, spring documentation says, they dropped support for netflix ribbon in recent spring boot and i see the spring boot cloud starter is not pulling the ribbon dependencies when i switch to spring boot 2.5.2
Now, my question is, if i upgrade my Spring boot version from 1.x to 2.5.2 and add the netflix ribbon dependencies ( explicitly) can i still take advantage of ribbon for client side load balancing ?
All i'm trying to understand is, would spring boot 2.5.2 work with netflix ribbon (if i add the netflix ribbon dependencies by myself) ?
Spring Cloud Netflix Ribbon is no longer supported. We suggest using Spring Cloud LoadBalancer as a replacement. You can find the documentation here and a guide here. We suggest using start.spring.io to find out the versions of Spring Cloud compatible with the supported versions of Spring Boot.

Configure MySQL with EFcore 3.0

I just started with Authentication and authorization for SPAs of Dotnet core 3.0 by using
dotnet new angular -o <output_directory_name> -au Individual
and it created a new project with Angular as a client side app and ASP.net core as a backend. Now I want to use MySQL with this template.
I have tried using two providers for this
MySql.Data.EntityFrameworkCore
Pomelo.EntityFrameworkCore.MySql
but both of them are not supported with Entityframework core 3.0 and asking me to downgrade to Entityframework core 2.2. When I downgraded to Entityframework core 2.2 another package named Microsoft.AspNetCore.ApiAuthorization.IdentityServer starts breaking as it requires Entityframework core version 3.0 and above.
Can somebody please tell me how to setup this template of Authentication and Authorization for SPAs for MySQL?
It turned out I had to wait some time for Pomelo Entity Framework Team to release the .NET Core 3.0 Supported version which is available now. All the other things are now working as expected.

Can AWS X-ray configured with jdk7?

I am exploring the AWS X-ray for monitoring my application with java 7.But in documentation, I found that, It requires java 8 or later(https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java.html).
Java 8 is required to up the xray or applicaton is needed to build in java 8?
If there is some process by which xray can be used with java 7?
There is no easy way to support Java 7. The SDK is developed on Java 8 which uses some features not available on older versions. You can download source from https://github.com/aws/aws-xray-sdk-java, modify it so it builds on Java 7 and use the built artifacts as needed.

OSGi and Hibernate - not suitable driver

I got the following situation.
I'm using Apache Felix as OSGi Service implementation and Apache Karaf as OSGi container.
There is a bundle in karaf which should save some data via hibernate into a database, but I always get a SQLException: No Suitable Driver found.
I deployed the mysql-connector-bundle to karaf.
The problem is, in my mind, that hibernate whether imports the mysql-driver-packages nor my classes which should be mapped.
But I don't know hot to fix this. I'm familar to eclipse rcp where the buddy-policy fixes such problems, is there any best practice for this problem for felix and karaf?
What version of hibernate do you use? Only since Hibernate 4, hibernate is aware of OSGi classloaders, and it still doesn't have complete OSGi support. See e.g. https://hibernate.onjira.com/browse/HHH-7527, which is planned for Hibernate 4.2.
We used Gemini JPA with eclipselink instead as JPA provider in OSGi.
In the karaf eco-system, there is Aries JPA, which is primarly used with OpenJPA. See Which JPA providers are supported by Apache Aries Managed JPA?
Hibernate can't access do data and classes from other bundles (at least in version 3.x; I don't know about version 4). It only works easily if all (methods using hibernate, pojos, mapping files, all libraries) is in the same bundle. It can't access resources in other bundles.
Please also see my answer in this thread.