Category "java"

Comparing LocalDate using Hamcrest in Junit Test Case

I am my unit testing my REST Controller, one of whose field is LocalDate in my Test Case. Code below: @Test public void getByExternalTransactionId() throws E

Howto getExtras from a local broadcast Intent in react-native

in my React-Native opened project, I want to receive the data (extra text) sent by another local service app named "scanservice" on its intent output (broadcast

Google Foobar Challenge 3 - Find the Access Codes

Find the Access Codes Write a function answer(l) that takes a list of positive integers l and counts the number of "lucky triples" of (lst[i], lst[j], lst[k])

java use simpledateformat to parse a input String get ParseException, and just because of a space

I input a string likes the SimpleDateFormat pattern asked, but it will be ParseException. I do several tests. If I change space between "dd HH" to "dd-HH", the

How can I ignore the exception if the item is not found? Selenium(selenide)

Several of my tests refer to importBrokerCheckBox. But not all tests have to find it, because he must be absent. That is, if the element is on the page, then we

One Android project two java file & res file

I took this from another resource but I have two java files and a res file I could not understand very well. Are these two files necessary?

No qualifying bean of type when using @ConditionalOnProperty

I have a component that I what to be able to enable/disable from the applikation.properties in my spring boot application.. In my application.properties I ha

Re-installing maven dependency project causes NoClassDefFoundError in already running application

Let's say I have a very simple maven project ProjA which has no dependencies itself. This project ProjA has classes X and Y as follows: class X package proja;

Can't launch Payara Micro from payara-micro-maven-plugin, getting "unsupported JDK"

I put together a sample project to demonstrate the issue I'm having. https://github.com/johnmanko/payara-micro-plugin-group Basically, I'm trying to launch my a

Spring Email with Greenmail: Authentication Credentials Invalid

I am trying to write test code for Spring Email using Greenmail. This works perfectly with 1.5.5 version of Greenmail, however when I try to update the version

How to format datetime like java?

I have the following java code: SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SXXX"); String timestamp = simpleDateFormat.for

How to redirect JUnit testing to the console in Eclipse?

I am a blind screen reader user and have a problem with JUnit in Eclipse. The results of tests passing or failing is represented as far as I understand visuall

Open a file's properties window using Java

This is a question only regarding Java in Windows. I need a method that will call this window: So essentially the method should be something like: public v

Getting AlreadyExistsException when creating table, even table is not found in aws keyspace

I am trying to create a table through following query on aws keyspace. it is throw an exception that "com.datastax.oss.driver.api.core.servererrors.AlreadyExist

Eclipse Google Cloud SQL connection

I am writing a Java MVC web app in Eclipse using Google App Engine. I would like to know why once I have deployed the app to Google Cloud the Google Cloud MySQ

Why I am getting java.lang.IllegalStateException when the validate servlet is called?

I have a login web application. Whenever I login, the request must be validated by validate Servlet and it must be forwarded to admin.jsp Everything is fine exc

VS Code terminal unable to privide UTF-8 input

I'm hopeful that this question is a duplicate, but I have searched a lot at this point, and I've not come across anything helpful, so I am dubious. The followin

How to declare string array[] of unknown size (JAVA)

I want my String[] array; to be static but I still don't know it's size. Is there any way to declare string array of unknown size? As much as possible I don't

Auth2 implementation for JAVA EWS existing project

I am new to auth2 implementation for Microsoft Exchange service and I want to implement the same in existing process Login Process. Previously we are using User

Springfox 3.0.0 is not working with Spring Boot 2.6.0 [duplicate]

Springfox 3.0.0 is not working with Spring Boot 2.6.0, after upgrading I am getting the following error org.springframework.context.Applicatio