Questions tagged [contract]

424 questions
5
votes
3 answers

WCF Large interface at a single endpoint address

I have a wcf service that exposes quite a large number of service methods on a single endpoint address. Up to now, all service methods are implemented in a single service contract class. This service contract class implements several service…
5
votes
4 answers

splitting swagger definition across many files

Question: how can I split swagger definition across files? What are the possibilities in that area? The question details are described below: example of what I want - in RAML I do have experience in RAML and what I do is, for example: /settings: …
ducin
  • 25,621
  • 41
  • 157
  • 256
5
votes
3 answers

SRS document relation to contract signing in software development ( b2b )

I was always wondering whats the relation of the SRS document with the official contract signed between two companies ( one supplies a software project the other is the customer ). Does the SRS document have to be written before the initial contract…
John Papastergiou
  • 999
  • 2
  • 14
  • 29
4
votes
1 answer

Contract Checking in Maven Build

I'm working on a Java codebase in IJ and currently building with Maven. I would like to supplement some of the code with some form of contracts that will get picked up in the Maven build. So far, I've been unsuccessful in my search for such a…
Colm Bhandal
  • 3,343
  • 2
  • 18
  • 29
4
votes
4 answers

Smart Contracts - Where is contract in it?

I am new to Smart Contracts. When I saw some example of Smart Contracts, I realize that they are just some piece of code, not exactly contracts. For example function sendCoin(address receiver, uint amount) is a method defined in smart contract which…
Kumar
  • 1,536
  • 2
  • 23
  • 33
4
votes
2 answers

Create contracts in laravel 5.4

Documentation on laravel.com is not sufficient. Can any one guide me through how to How To Create contracts in Laravel from scratch. I need implementation of Contracts in Laravel. Right now, I'm using Laravel 5.4
Rajan
  • 105
  • 1
  • 8
4
votes
2 answers

How does the native android contacts app cater for intents to apps, such as whatsapp

WhatsApp recently added the call feature. Before this, there was only one option when viewing a contact, that was to message the contact. Now there is the option to message or call a contact. Did WhatsApp add this entry to the ContactsContract, or…
Yoker
  • 500
  • 4
  • 20
4
votes
1 answer

racket contract dependency evaluation twice?

#lang racket (module inside racket (provide (contract-out [dummy (->i ([x (lambda (x) (begin (displayln 0) #t))] [y (x) (lambda (y) (begin (displayln 1) #t))] [z (x y) (lambda (z) (begin…
Albert Netymk
  • 1,102
  • 8
  • 24
4
votes
3 answers

How to enforce interface contracts (in C) at compile time?

Background: We're modeling the firmware for a new embedded system. Currently the firmware is being modeled in UML, but the code generation capabilities of the UML modeling tool will not be used. Target language will be C (C99, to be specific). Low…
Dan
  • 10,303
  • 5
  • 36
  • 53
4
votes
1 answer

Which 3rd party Code-by-Contract library is most like MS's .NET 4.0 library?

I want to jump into coding by contract. I got VS2010 (with the C# 4.0 compiler) but I have to target the 3.5 framework. What 3rd party code by contract library has classes and interface the most like the .NET 4.0 ones?
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
4
votes
2 answers

Callback interface contract

I have two .NET parties who needs be bound by a contract. Now, party1 and party2 need to be able call some methods on each other (most of it is calls and reporting result back). I have duplex contract in mind, but the parties are not using WCF. Is…
ajeshjohn
  • 91
  • 6
4
votes
3 answers

Two java.util.Iterators to the same collection: do they have to return elements in the same order?

This is more of a theoretical question. If I have an arbitrary collection c that isn't ordered and I obtain two java.util.Iterators by calling c.iterator() twice, do both iterators have to return c's elements in the same order? I mean, in practice…
Jan Van den bosch
  • 3,542
  • 3
  • 26
  • 38
4
votes
1 answer

Compare method throw exception: Comparison method violates its general contract

Possible Duplicate: why does my compare method throw exception — Comparison method violates its general contract! I've this code: class TimeComparatorTipo0 implements Comparator { @Override public int compare(Object a, Object b) { String…
famedoro
  • 1,223
  • 2
  • 17
  • 41
3
votes
1 answer

How to use contract-out in Racket

I have written a complimentary-multiply-with-carry PRNG in Racket. I want to use provide to restrict access only to certain functions within my library, and to impose contracts on them. Using the Racket Documentation (linked above), I have put the…
djhaskin987
  • 9,741
  • 4
  • 50
  • 86
3
votes
1 answer

PACT Testing: Unexpected Request body: 500

I have a request class which has this fields: private final String pk; private final String sk; private final List tags; private final ZoneId timeZone; private final String pattern; private final SomeEnum action; private final String…
Yamini
  • 67
  • 1
  • 6
1 2
3
28 29