[wp_ad_camp_1] Sometimes you may not have access to a repository and may need to go around it. If your colleagues have local copies of jar files needed to compile a whole Maven project, you may simply replace the content of
Group JUnit Test Cases using @Suite.SuiteClasses
Grouping Unit Tests [wp_ad_camp_5] At times there are certain set of unit tests we want to execute automatically. These tests may be critical or have been simply grouped for some reasons. To group JUnit test cases, we use @Suite.SuiteClasses annotation.
Parse CSV file using Apache Commons CSV
Why use CSV files? [wp_ad_camp_5] Sometimes we process data in bulk by reading them from files with specific format like CSV. This article demonstrates how to parse a CSV file using Apache Commons CSV. A CSV is a file format
Upload file using SOAP UI
Upload file using SOA UI This article demonstrates how to upload file to a RESTful web service. Using SoapUI for testing web services may hasten the development of an application since we do not need to wait for a working
Parse CSV file uploaded as MultipartFile using Apache Commons CSV
From MultiPartFile to Reader object [wp_ad_camp_5] The parse method only accepts a single java.io.Reader object and you may need to convert the MultipartFile object to a Reader object. The MultipartFile class has the getInputStream() whose return value can be passed
Dropdowns in UI Grid
[wp_ad_camp_1] Using dropdowns in UI-Grid is two-fold. One, you define a filter that displays the labels of HTML’s SELECT values when the dropdown is not on focus or edit mode. The following Department labels are displayed using a filter. Second,
Pass data to Controller from another controller using $mdDialog
[wp_ad_camp_1] There are a couple of ways to do this.One is via $rootScope by creating (maybe temporarily) a public member variable and let the dialog controller read from it. This is also similar to creating a service with public member
Using Composer from Java Developer’s Perspective
Background Composer is a dependency manager for PHP. It makes your life easy. If you are a Java developer and have used Apache Maven, you’ll find Composer a familiar tool. Unlike Maven, dependencies are declared in a file called composer.json
How to create classes in JavaScript
Background [wp_ad_camp_1] I must admit I used to dislike JavaScript and UI development. First, I related JavaScript to Web UI design at which I am very not good at. I do not have an artistic side when it comes to
How to adjust table headers in Angular-Datatables
This highlights how to programmatically adjust table headers after rendering angular-datatables. Note that sometimes before adjusting the headers so that they will aligned with the table body (
), a delay (via setTimeout()) is needed as the adjustment may be interrupted or prevented by any of the tables’ parent elements.