Skip to content

Tag: java

Permutations with duplicates

Before I start, I have to apologize for bringing up another case of permutations with duplicates. I have gone through most of the search results and can’t really find what I am looking for. I have read about the Lexicographical order and have implemented it. For this question, I am suppose to implement …

How Can I View Glassfish Logs on Intellij Idea

I am working on making the switch from Netbeans to Intellij Idea. One thing I miss from Netbeans is the ability to view the Glassfish server logs in real-time in the IDE. It seems like with Idea I need to go out to the file system and tail them. Is there another way that I am missing? Answer Additional server

How to generate WSDD based on code or based on WSDL

I have access to remote sever that provides me wsdl back to my response. I prepared Client for this, based on that wsdl. Now I woud like to write a fake Server (for testing needs), what I should start first? Which steps I should implement? The test makes sense only if it is implemented by this WSDL. Is it pos…

Liquibase plugin for gradle

I’ve been looking for a liquibase gradle plugin and found gradle-liquibase-plugin from tlberglund. Gradle version 1.2 build file: Runnin gradle build fails with the following error: Does anyone have experience with this plugin, I would really appreciate a working example. Answer The problem isn’t …

passing Parameterized input using Mockitos

I am using Mockito for unit testing. I am wondering if its possible to send Parametrized input parameters with as in Junit testing e.g Answer In JUnit, Parameterized tests use a special runner that ensure that the test is instantiated multiple times, so each test method is called multiple times. Mockito is a …

What happens if import statements can not be resolved?

I am not clear on the following: A class is loaded by JVM when needed, like lazy initialization, right? Now if class A does an import of class B which class B actually is not in the file system (e.g. B.class was deleted or not delivered or any reason) then does class A get loaded and runs if no method

What is meant by parameterized type?

This link states the following: The instantiation of a generic type with actual type arguments is called a parameterized type . Example (of a parameterized type): Collection<String> coll = new LinkedList<String>(); So what is the parameterized type? Collection<String> or LinkedList<String…