This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
// Mit der Annotation kann man definieren ob eine Annotation zur | |
// Laufzeit ausgewertet werden kann. | |
@Retention(RetentionPolicy.RUNTIME) | |
// Mit der Target Annotation kann man eine Annotation markieren |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
public class TestDescriptionTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
import javax.xml.bind.annotation.XmlElement; | |
import javax.xml.bind.annotation.XmlRootElement; | |
@XmlRootElement | |
public class CustomerModel implements Serializable { | |
private static final long serialVersionUID = 1L; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import javax.xml.bind.JAXB; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
public class CustomerModelTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.junit.Assert.assertEquals; | |
import java.util.HashMap; | |
import org.junit.Before; | |
import org.junit.Test; | |
public class TextParserTest { | |
TextParser parser; | |
HashMap<String, Integer> expedtedWordCounts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
public class TextParser { | |
public Map<String, Integer> parseTextWordCount(String text) { | |
HashMap<String, Integer> result = new HashMap<String, Integer>(); | |
if(text != null) | |
{ | |
if(!text.trim().isEmpty()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
</resource> | |
<resource> | |
<directory>.</directory> | |
<includes> | |
<include>plugin.xml</include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Die Funktion wird deklariert mit einem Übergabeparameter und einem return Wert true. | |
function sayHello(message){ | |
alert('Hello World : ' + message); | |
return true; | |
} | |
// Die Methode wird aufgerufen mit dem Parameterwert ' to JavaScript!' | |
sayHello(' to JavaScript!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function windowLoadListener(event){ | |
var div = document.getElementById('textAusgabeDiv'); | |
var helloWorld = document.createTextNode('Hello World'); | |
div.appendChild(helloWorld); | |
} | |
window.onload = windowLoadListener; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>JavaScript Demo</title> | |
<link rel="stylesheet" type="text/css" href="css/styles.css"> | |
<script type="text/javascript" src="javascript/core.js"></script> | |
</head> | |
<body> | |
<div id="textAusgabeDiv"></div> | |
</body> | |
</html> |