Hi, is it possible to insert data into DB through testcase in java?

|
siva saha Surendra Harshit 2022-07-19 18:05:34
kingisinthebuilding0 2022-07-19 18:04:34
Have u got bro

No bro

muskan 2022-07-19 18:40:13
springbootmicroservices-68829.jpg
Can anyone help me to solve this?
muskan 2022-07-19 18:40:13
springbootmicroservices-68828.jpg

muskan 2022-07-19 18:40:13
springbootmicroservices-68827.jpg

Ruksat 2022-07-19 18:45:42
I am using one object from one jar file in one method of my application, which i can not Autowire. Using that object m calling one method from that jar itself. Now when I am trying to write test case for that method thn want to mock that object which i called from the jar. How can I do that?? @Mock, @Spy i have tried already but it’s not working
amrulfarooqui 2022-07-19 18:48:39
Ruksat 2022-07-19 18:45:42
I am using one object from one jar file in one method of my application, which i can not Autowire. Using that object m calling one method from that jar itself. Now when I am trying to write test case for that method thn want to mock that object which i called from the jar. How can I do that?? @Mock, @Spy i have tried already but it’s not working

First create a Bean of that class which belongs to external Jar and then you will be able to Autowire that.

Jithendra Reddy 2022-07-19 19:07:03
Stuffing7 2022-07-19 09:51:50
Anyome has implemented swagger in spring boot

Yes

kraviteja95 2022-07-19 19:56:06
Hi, actually I’m looking for some information reg available JVM heap memory space calculation.

So actually, the use-case is – I need to check if the available JVM memory heap space of the APM Java agent is certain MB. If it’s equal to the expected value, I will print success. If < expected MB, then I need to adjust the JVM’s memory heap settings (-Xmx) appropriately

kraviteja95 2022-07-19 19:56:37
If in case anyone is aware of this, could you kindly suggest me how/what I can execute in the Linux systems to achieve this , pls, ?
Naveen Lovely 2022-07-20 00:28:15
Can anyone tell me how to kept api urls and token from service class to application.properties file in spring boot
Naveen Lovely 2022-07-20 00:31:39
Naveen Lovely 2022-07-20 00:28:15
Can anyone tell me how to kept api urls and token from service class to application.properties file in spring boot

I wrote those variables in in private string and with key value and calling those give null and showing like connection refused.

FullStackDev 2022-07-20 00:59:52
kraviteja95 2022-07-19 19:56:06
Hi, actually I’m looking for some information reg available JVM heap memory space calculation.

So actually, the use-case is – I need to check if the available JVM memory heap space of the APM Java agent is certain MB. If it’s equal to the expected value, I will print success. If < expected MB, then I need to adjust the JVM’s memory heap settings (-Xmx) appropriately

Take heap dump check the logs

Spandana Bandarupalli 2022-07-20 05:05:02
Hi , I am looking for fast track spring boot & micro services classes,pls let me know if anyone knows good trainer
Kiran 2022-07-20 05:11:29
Spandana Bandarupalli 2022-07-20 05:05:02
Hi , I am looking for fast track spring boot & micro services classes,pls let me know if anyone knows good trainer

You can pick one from udemy

Kiran 2022-07-20 05:11:33
That should be fine
Vishal 2022-07-20 06:22:49
Hi guys
I am done with my spring boot and micro services course. And also made some internal projects and will start working on real live project
Now what will I do next ?
kingisinthebuilding0 2022-07-20 06:39:31
Vishal 2022-07-20 06:22:49
Hi guys
I am done with my spring boot and micro services course. And also made some internal projects and will start working on real live project
Now what will I do next ?

Msg me bro

kraviteja95 2022-07-20 06:53:37
FullStackDev 2022-07-20 00:59:52
Take heap dump check the logs

Thank you! But the current use case that I’m working is to check through the Linux commands only so I’m looking for them.
I checked various blogs but unfortunately I don’t see any command that belongs to the calculation of the free JVM Memory heap space in MB

vbg 2022-07-20 08:15:33
Hi, is it possible to insert data into DB through testcase in java?
Silu9777 2022-07-20 08:45:15
kraviteja95 2022-07-20 06:53:37
Thank you! But the current use case that I’m working is to check through the Linux commands only so I’m looking for them.
I checked various blogs but unfortunately I don’t see any command that belongs to the calculation of the free JVM Memory heap space in MB

Use springboot actuator

Anand Rajput 2022-07-20 08:50:09
springbootmicroservices-68897.jpg

Zelenskyy 2022-07-20 08:50:29
Anand Rajput 2022-07-20 08:50:09

8080

Anand Rajput 2022-07-20 08:51:05
Zelenskyy 2022-07-20 08:50:29
8080

give this port name 8081

Anand Rajput 2022-07-20 08:51:45
Zelenskyy 2022-07-20 08:50:29
8080

do not run local server download this file

Anand Rajput 2022-07-20 08:52:19
i use springboot suit 4
Zelenskyy 2022-07-20 08:52:51
Anand Rajput 2022-07-20 08:51:05
give this port name 8081

Yes, server. Port=8081

Anand Rajput 2022-07-20 08:53:29
Zelenskyy 2022-07-20 08:52:51
Yes, server. Port=8081

how reslove that download problem

Zelenskyy 2022-07-20 08:53:56
Anand Rajput 2022-07-20 08:53:29
how reslove that download problem

Which

beerceps 2022-07-20 09:06:55
Java Tech lead opening in Virtusa ..Intereseted can DM
beerceps 2022-07-20 09:14:20
Also, Java full stack developers opening
|