text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.prototype;
/**
*
* @author Jameel
*/
public interface Prototype {
public Prototype doClone();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.prototype;
/**
*
* @author Jameel
*/
public class Dog implements Prototype {
String sound;
public Dog(String sound){
this.sound = sound;
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.template;
/**
*
* @author Administrator
*/
public abstract class Meal {
public final void doMeal(){
prepareMeal();
cook();
eat();
cleanup();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.template;
/**
*
* @author Administrator
*/
public class ChineseMeal extends Meal {
@Override
public void prepareMeal() {
System.out.println("get rice, veg and me... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facades;
/**
*
* @author Jameel
*/
public class Class1 {
public int doSomethingComplicated(int x) {
return x * x * x;
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facades;
/**
*
* @author Jameel
*/
public class Class2 {
public int doAnotherThing(Class1 class1, int x) {
return 2 * class1.doSomethingComplicated(x);
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facades;
/**
*
* @author Jameel
*/
public class Class3 {
public int doMoreStuff(Class1 class1, Class2 class2, int x) {
return class1.doSomethingComplicated(x) * cla... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facades;
/**
*
* @author Jameel
*/
public class Facade {
public int cubeX(int x) {
Class1 class1 = new Class1();
return class1.doSomethingComplicated(x);
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.state;
/**
*
* @author Administrator
*/
public class SadState implements EmotionState {
@Override
public String sayGoodbye() {
return "Bye. Sniff, sniff.";
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.state;
/**
*
* @author Administrator
*/
public class HappyState implements EmotionState {
@Override
public String sayGoodbye() {
return "Bye, friend!";
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.state;
/**
*
* @author Administrator
*/
public interface EmotionState {
public String sayHello();
public String sayGoodbye();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.state;
/**
*
* @author Administrator
*/
public class Person implements EmotionState {
EmotionState emotionState;
public Person(EmotionState emotionState) {
thi... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.adapter;
/**
*
* @author Jameel
*/
public interface TemperatureInfo {
public double getTemperatureInF();
public void setTemperatureInF(double temperatureInF);
pu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.adapter;
/**
*
* @author Jameel
*/
public class TemperatureObjectReporter implements TemperatureInfo {
CelciusReporter celciusReporter;
public TemperatureObjectReporter... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.adapter;
/**
*
* @author Jameel
*/
public class TemperatureClassReporter extends CelciusReporter implements TemperatureInfo {
@Override
public double getTemperatureInF() ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.adapter;
/**
*
* @author Jameel
*/
public class CelciusReporter {
double temperatureInC;
public CelciusReporter() {
}
public double getTemperature() {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facrtory;
/**
*
* @author Jameel
*/
public class Cat extends Animal {
@Override
public String makeSound() {
return "Meow";
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facrtory;
/**
*
* @author Jameel
*/
public abstract class Animal {
public abstract String makeSound();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facrtory;
/**
*
* @author Jameel
*/
public class AnimalFactory {
public Animal getAnimal(String type) {
if ("canine".equals(type)) {
return new Dog();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.facrtory;
/**
*
* @author Jameel
*/
public class Dog extends Animal{
@Override
public String makeSound() {
return "Woof";
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wo.cput.pattern.tests;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
/**
*
* @author Administrator
*/
@RunWith(Sui... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.encap.config;
import az.ac.cput.wo.encap.service.imp.EmployeeImp;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
/*... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.encap.service;
import az.ac.cput.wo.encap.model.Document;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
String emp(Document document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.encap.service.imp;
import az.ac.cput.wo.encap.model.Document;
import az.ac.cput.wo.encap.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class EmployeeImp implements ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.encap.model;
/**
*
* @author guantong
*/
public final class Document {
private final String name;
public Document(String name) {
this.name = name;
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.viol.config;
import az.ac.cput.wo.ocp.viol.service.imp.LoanImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.viol.service.imp;
import az.ac.cput.wo.ocp.viol.service.LoanInterface;
/**
*
* @author guantong
*/
public class LoanImpl implements LoanInterface {
@Override
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.viol.service;
/**
*
* @author guantong
*/
public interface LoanInterface {
public int loan();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.viol.model;
/**
*
* @author guantong
*/
public class Loan {
private int balance;
/**
* Cr eat e s a new ins t anc e o f LoanRequestHandler
*/
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.viol.model;
/**
*
* @author guantong
*/
public class PersonalLoanValidator {
public PersonalLoanValidator() {
}
public boolean isValid(int balance) {
if... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.obey.config;
import az.ac.cput.wo.ocp.obey.service.imp.LoanImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.obey.service;
/**
*
* @author guantong
*/
public interface VidInterface {
public boolean isValid(int balance);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.obey.service.imp;
import az.ac.cput.wo.ocp.obey.service.LoanInterface;
/**
*
* @author guantong
*/
public class LoanImpl implements LoanInterface{
@Override
public i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.obey.service;
/**
*
* @author guantong
*/
public interface LoanInterface {
public int loan();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.obey.model;
/**
*
* @author guantong
*/
public class Loan {
private int balance;
/**
* Cr eat e s a new ins t anc e o f LoanRequestHandler
*/
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.ocp.obey.model;
import az.ac.cput.wo.ocp.obey.service.VidInterface;
/**
*
* @author guantong
*/
public class LoanVid implements VidInterface {
public LoanVid() {
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.viol.config;
import az.ac.cput.wo.crp.viol.service.imp.EmployeeImp;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bea... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.viol.service;
import az.ac.cput.wo.crp.viol.model.Document;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
String emp(Document document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.viol.service.imp;
import az.ac.cput.wo.crp.viol.model.Document;
import az.ac.cput.wo.crp.viol.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class EmployeeImp ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.viol.model;
/**
*
* @author guantong
*/
public final class Document {
private final String name;
public Document(String name) {
this.name = name;
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.obey.config;
import az.ac.cput.wo.crp.obey.service.imp.Impl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
/**... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.obey.service;
import az.ac.cput.wo.crp.obey.model.PartTime;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
String emp(PartTime document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.obey.service.imp;
import az.ac.cput.wo.crp.obey.model.PartTime;
import az.ac.cput.wo.crp.obey.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class Impl impleme... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.obey.model;
/**
*
* @author guantong
*/
public class PartTime extends Employee {
private int empNo;
public int getEmpNo() {
return empNo;
}
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.crp.obey.model;
/**
*
* @author guantong
*/
public class Employee {
private String name;
public String getName() {
return name;
}
public void setNa... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.poly.config;
import az.ac.cput.wo.poly.service.imp.EmployeeImp;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
/**
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.poly.service;
import az.ac.cput.wo.poly.model.Employee;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
String emp(Employee document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.poly.service.imp;
import az.ac.cput.wo.poly.model.Employee;
import az.ac.cput.wo.poly.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class EmployeeImp implements... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.poly.model;
/**
*
* @author guantong
*/
public class Manager extends Employee {
public Manager(String fName){
super(fName);
}
@Override
public String to... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.poly.model;
/**
*
* @author guantong
*/
public class Employee {
protected String name;
public Employee(String name) {
this.name = name;
}
public Stri... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.inher.config;
import az.ac.cput.wo.inher.service.imp.Impl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
/**
*
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.inher.service;
import az.ac.cput.wo.inher.model.PartTime;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
String emp(PartTime document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.inher.service.imp;
import az.ac.cput.wo.inher.model.PartTime;
import az.ac.cput.wo.inher.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class Impl implements Employe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.inher.model;
/**
*
* @author guantong
*/
public final class PartTime extends Employee {
private int empNo;
public int getEmpNo() {
return empNo;
}
publ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.inher.model;
/**
*
* @author guantong
*/
public class Employee {
private String name;
public String getName() {
return name;
}
public void setName(St... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.viol.config;
import az.ac.cput.wo.isp.obey.service.imp.LoanImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.viol.service.imp;
import az.ac.cput.wo.isp.obey.service.LoanInterface;
/**
*
* @author guantong
*/
public class LoanImpl implements LoanInterface{
@Override
public i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.viol.service;
/**
*
* @author guantong
*/
public interface LoanInterface {
public int loan();
public boolean isValid(int balance);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.viol.model;
/**
*
* @author guantong
*/
public class Loan {
private int balance;
/**
* Cr eat e s a new ins t anc e o f LoanRequestHandler
*/
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.viol.model;
import az.ac.cput.wo.ocp.obey.service.VidInterface;
/**
*
* @author guantong
*/
public class LoanVid implements VidInterface {
public LoanVid() {
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.obey.config;
import az.ac.cput.wo.isp.obey.service.imp.LoanImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.obey.service;
/**
*
* @author guantong
*/
public interface VidInterface {
public boolean isValid(int balance);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.obey.service.imp;
import az.ac.cput.wo.isp.obey.service.LoanInterface;
/**
*
* @author guantong
*/
public class LoanImpl implements LoanInterface{
@Override
public i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.obey.service;
/**
*
* @author guantong
*/
public interface LoanInterface {
public int loan();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.obey.model;
/**
*
* @author guantong
*/
public class Loan {
private int balance;
/**
* Cr eat e s a new ins t anc e o f LoanRequestHandler
*/
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.isp.obey.model;
import az.ac.cput.wo.ocp.obey.service.VidInterface;
/**
*
* @author guantong
*/
public class LoanVid implements VidInterface {
public LoanVid() {
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.viol.config;
import az.ac.cput.wo.lsp.viol.service.imp.LoanImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.viol.service;
/**
*
* @author guantong
*/
public interface VidInterface {
public boolean isValid(int balance);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.viol.service.imp;
import az.ac.cput.wo.lsp.viol.service.LoanInterface;
/**
*
* @author guantong
*/
public class LoanImpl implements LoanInterface{
@Override
public i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.viol.service;
/**
*
* @author guantong
*/
public interface LoanInterface {
public int loan();
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.viol.model;
/**
*
* @author guantong
*/
public class Loan {
private int balance;
public int getBalance() {
return balance;
}
public void setBalan... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.viol.model;
import az.ac.cput.wo.lsp.viol.service.VidInterface;
/**
*
* @author guantong
*/
public class LoanVid implements VidInterface {
public LoanVid() {
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.obey.config;
import az.ac.cput.wo.lsp.obey.service.imp.LoanImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.obey.service;
/**
*
* @author guantong
*/
public interface VidInterface {
public boolean isValid(int balance);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.obey.service.imp;
import az.ac.cput.wo.lsp.obey.service.LoanInterface;
/**
*
* @author guantong
*/
public class LoanImpl implements LoanInterface {
@Override
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.obey.service;
/**
*
* @author guantong
*/
public interface LoanInterface {
int loan(int a);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.obey.model;
/**
*
* @author guantong
*/
public class Loan {
private int balance;
public int getBalance() {
return balance;
}
public void setBalan... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.lsp.obey.model;
import az.ac.cput.wo.lsp.obey.service.VidInterface;
/**
*
* @author guantong
*/
public class LoanVid implements VidInterface {
public LoanVid() {
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.viol.config;
import az.ac.cput.wo.srp.viol.service.imp.EmployeeImp;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.viol.service;
import az.ac.cput.wo.srp.viol.model.Employee;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
public String emp(Employee document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.viol.service.imp;
import az.ac.cput.wo.srp.viol.model.Employee;
import az.ac.cput.wo.srp.viol.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class EmployeeImp ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.viol.model;
/**
*
* @author guantong
*/
public class Manager extends Employee {
public Manager(String fName){
super(fName);
}
@Override
public Strin... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.viol.model;
/**
*
* @author guantong
*/
public class Employee {
protected String name;
public Employee(String name) {
this.name = name;
}
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.obey.config;
import az.ac.cput.wo.srp.obey.service.imp.EmployeeImp;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.obey.service;
import az.ac.cput.wo.srp.obey.model.Document;
/**
*
* @author guantong
*/
public interface EmployeeInterface {
String emp(Document document);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.obey.service.imp;
import az.ac.cput.wo.srp.obey.model.Document;
import az.ac.cput.wo.srp.obey.service.EmployeeInterface;
/**
*
* @author guantong
*/
public class EmployeeIm... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package az.ac.cput.wo.srp.obey.model;
/**
*
* @author guantong
*/
public final class Document {
private final String name;
public Document(String name) {
this.name = name;
}
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package za.ac.cput.wo;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import za.ac.cput.wo.crp.obey.test.CrpObeyJUnitTest;
import z... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 3
* returns their name and a
* reversed string
*
* @author Bob
* @version 1.1
*/
public class Person3 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* name
* @param... |
package edu.gatech.oad.antlab.person;
import java.util.ArrayList;
import java.util.Random;
/**
* A simple class for person 2
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person2 {
/** Holds the persons real name */
private String name;
... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 5
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person5 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* na... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 1
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person4 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 1
* returns their name and a
* modified string
*
* @author Kurt Nelson
* @version 1.1
*/
public class Person1 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons... |
package edu.gatech.oad.antlab.pkg2;
/**
* CS2335 Ant Lab
*
* AntLab11.java helper class
*
* @author Robert
* @version 1.0
*/
public class AntLab22 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
retu... |
package edu.gatech.oad.antlab.pkg2;
/**
* CS2340 Ant Lab
*
* AntLab11.java helper class
*
* @author Robert
* @version 1.0
*/
public class AntLab21 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
retu... |
package edu.gatech.oad.antlab.pkg1;
import edu.cs2335.antlab.pkg3.*;
import edu.gatech.oad.antlab.person.*;
import edu.gatech.oad.antlab.pkg1.*;
import edu.gatech.oad.antlab.pkg2.*;
/**
* CS2335 Ant Lab
*
* Prints out a simple message gathered from all of the other classes
* in the package structure
... |
package edu.gatech.oad.antlab.pkg1;
/**
* CS2340 Ant Lab
*
* AntLab11.java helper class
* @author Robert
* @version 1.0
*/
public class AntLab11 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
return "C... |
package edu.gatech.oad.antlab.pkg1;
/**
* CS2335 Ant Lab
*
* AntLab12.java helper class
*/
public class AntLab12 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
return " You";
}
} |
package il.ac.technion.wiki.impl.wikidocument.content;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import junit.framework.Assert;
import org.junit.Test;
public c... |
package il.ac.technion.wiki.impl.search;
import il.ac.technion.wiki.api.search.Hit;
import il.ac.technion.wiki.api.wikidocument.WikiDocument;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.