View inheritance.rb
1 2 3 4 5 6 7 8 9 10
class A
def to_s
"class a"
end
end
 
class B
def B.new()
A.new()
end
View build.gradle
1 2 3 4 5 6 7 8 9 10
import com.petebevin.markdown.MarkdownProcessor
import org.xhtmlrenderer.pdf.ITextRenderer
import org.ccil.cowan.tagsoup.Parser
import org.apache.xalan.xsltc.trax.SAX2DOM
import org.xml.sax.InputSource
 
buildscript{
repositories {
mavenCentral() // i.e. http://repo1.maven.org/maven2
maven { url "https://oss.sonatype.org/content/groups/scala-tools" }
View task1.md

Упражнение 1

Задача 1

  1. Определить интерфейс Report с единственным методом String getReport()
  2. Создать интерфейс Account, расширяющий интерфейс Report, с методами float getBalance(), void deposit(float x), void withdraw(float x)
  3. Создать класс Client, представляющий клиента банка и реализующий интерфейс Report. У клиента есть имя (уникальное и неизменяемое), указатель на активный счет, список всех счетов. Также клиент должен переопределить метод getReport(), который
View task1.txt
1 2 3 4 5 6 7 8 9
@startuml
 
title Relationships - Class Diagram
 
 
class Dwelling {
+Int Windows
+void LockTheDoor()
}
View CheckingAccountTest.java
1 2 3 4 5 6 7 8 9 10
package com.luxoft.bankapp.model;
 
import com.luxoft.bankapp.model.exception.OverDraftLimitExceededException;
import org.junit.Before;
import org.junit.Test;
 
import static org.junit.Assert.*;
 
// test only CheckingAccount specific functionality
// do not test AbstractAccount functionality
View AbstractAccountTest.java
1 2 3 4 5 6 7 8 9 10
package com.luxoft.bankapp.model;
 
import org.junit.Test;
 
import static org.junit.Assert.*;
 
public class AbstractAccountTest {
// dummy class for testing purpose
// there is no logic inside.
// I want test AbstractAccount not TestingAccount
View CheckingAccount.java
1 2 3 4 5 6 7 8 9 10
package com.luxoft.bankapp.model;
 
import com.luxoft.bankapp.model.exception.OverDraftLimitExceededException;
 
// this is an incomplete class. use it as example.
public class CheckingAccount extends AbstractAccount {
private float overdraft;
 
public CheckingAccount(float balance) {
super(balance);
View AbstractAccount.java
1 2 3 4 5 6 7 8 9 10
package com.luxoft.bankapp.model;
 
// this is an incomplete class. use it as example.
public abstract class AbstractAccount {
 
protected float balance;
 
public AbstractAccount() {
balance = 0.0f;
}
View task_for_holidays.md

Your task will be to gain an understanding of Unit Test.

You must complete this task until January 12, 2015

This task will be taken into account in the final assessment of the course.

What you should do?

  1. Find information about unit tests and about other tests (integration test, performance test, etc)
  2. Create test suite for Bank Application
  3. Find information about Code Coverage and measure code coverage (c0) of your Bank Application
View server.rb
1 2 3 4 5
require 'sinatra'
 
get '/hi' do
"Hello World!"
end
Something went wrong with that request. Please try again.