Showing posts with label other2. Show all posts
Showing posts with label other2. Show all posts

August 01, 2014

Mockito Junit - Hibernate Code Example

Mockito Junit Hibernate example required source code attached here. Please download required jars download from findJar site. If you want work with much more examples, please Click M...
Read more ...

Mockito Junit Code Examples

Mockito is an unwrap source testing framework for Java released under the MIT License. The framework allows the creation of test double objects (mock objects) inautomated unit tests for the purpose of Test-driven Development (TDD) or Behavior Driven Development (BDD). Unit...
Read more ...

October 10, 2012

How to resolve following message - Error 1327, Invalid Drive F or I (any drive) ?

I have solved it and if anyone has the same problem in the future follow these instructions:-Hit Start, Run and type RegeditFind the following HKEY_CURRENT_USER\Software\Microsoft\Windows| CurrentVersion\ Explorer\User Shell FoldersIn the right pane - see if these is any entries which has an F or any other alphabelts not C (your OP folder)...
Read more ...

June 29, 2012

Setting Up Eclipse with Java 1.6 on Windows

Step 1 - Download JavaStep 2 - Install JavaStep 3 - Set the PATHStep 4 - Set the CLASSPATHStep 5 - Test the Java installationStep 6 - Download and install EclipseStep 7 - Test the Eclipse installationStep 1     Download Java 1.6 package for Windows.  Click the Download button alongside the label  JDK 6 Update 2 (or similar). On that page, accept...
Read more ...

February 11, 2012

C Interview Questions

C Questions Note : All the programs are tested under Turbo C/C++ compilers. It is assumed that,  Programs run under DOS environment,  The underlying machine is an x86 system,  Program is compiled using Turbo C/C++ compiler. The program output may depend on the information based on this assumptions (for example sizeof(int) == 2 may be assumed). Predict the output or error(s) for the following: 1. void main(){ int const * p=5;printf("%d",++(*p)); } Answer:Compiler...
Read more ...

Enum: JPA and Enums via @Enumerated

JPA and Enums via @Enumerated share [gp] share [fb] share [tw] share [pin] contribute It can sometimes be desirable to have a Java enum type to represent a particular column in a database. JPA supports converting database data to and from Java enum types via the @javax.persistence.Enumerated annotation. This example will show basic @Enumerated usage in a field...
Read more ...

My Favorite Site's List

#update below script more than 500 posts