java olarak etiketli yazılar

Junit – Unrooted Test

If you have experienced “unrooted tests” title in your IDE while you are trying to run JUnit test method and as a result if it just runs all the cases you probably couldn’t handle Junit annotations with your test class.

After some googling i found the solution. Here a simple test class annotation applied and some details for preventing this situation.

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*; 

public class MyUnitTest{ // 1. Do not extend TestCase

  @Before
  public void setUp() {
    // 2. No super call
  }

  @After
  public void tearDown() throws Exception {
  }

  @Test
  public void caseOneTest() { // 3. No need "test" prefix

    // 4. Assert static imported
    assertTrue(true);
  }
}

JavaTip – Setting Java Name Service Providers Priorities

Today’s big thing is the following java property;

-Dsun.net.spi.nameservice.provider.<n>= file || dns || dnsjava || nis ||...

We have been troubling by host-name resolving problem with Apache Tomcat for a while. 5 min ago we found that property and applied

-Dsun.net.spi.nameservice.provider.1= file,dns,dnsjava

to Tomcat’s catalina.sh (Path = %CATALINA_HOME%/bin/catalina.sh)

And all is ok.

PS: For more Java networking properties you may take a look  http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html

Displaytag Tag Library

The display tag library is an open source suite of custom tags that provide high-level web presentation patterns which will work in an MVC model. The library provides a significant amount of functionality while still being easy to use.

Yukarıdan anlayacağınız gibi Displaytag MVC modelinde çalışan esnek, hızlı ve kolay entegre edilebilir bir frameworktür. Ayrıca kendilerinin en azılı hayranı olmuş bulunmaktayım.

Türk Telekom Ip/MPLS Omurga Sözleşmesi kapsamında geliştirdiğimiz uygulamalarda çok büyük verileri gayet hızlı şekilde istenilen biçimde kullanıcıya sunmamı sağladı bu framework. Hakkını ne yapsam ödeyemem :) Bu yazının devamını okuyun »

Devoxx

Devox yukarıdaki görselden de anlaşılacağı gibi bir java topluluğu konferansı. Ama öyle haybeye bir konferans değil… Bizim takımdan Barış ve Cenk bu konferansa katılacaklar…(evet çok şanslılar…) Herneyse… Sıradan bir konferans değil demiştik.

Konferans Bilgileri; Bu yazının devamını okuyun »