input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
get ( ) { org . oscm . billingservice . business . calculation . revenue . model . OverallCosts costs = org . oscm . billingservice . business . calculation . revenue . model . OverallCosts . newInstance ( ) ; costs = costs . add ( "EUR" , BigDecimal . TEN ) ; java . math . BigDecimal amount = costs . get ( "EUR" ) ; "...
org . junit . Assert . assertEquals ( BigDecimal . TEN , amount )
testSetValue ( ) { view . setHandle ( 0 , 4 ) ; view . valueChanged ( 0.0F ) ; view . setHandle ( 0 , 4 ) ; replay ( view ) ; scrollbar . bindToView ( view , 0.0F , 4.0F , viewSize , 1.0F , 4.0F ) ; scrollbar . setValue ( 4.0F ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( 0.0F , scrollbar . getValue ( ) )
debieraMostrarEstado ( ) { log . debug ( "Debiera<sp>mostrar<sp>Estado" ) ; mx . edu . um . mateo . colportor . model . Pais pais = new mx . edu . um . mateo . colportor . model . Pais ( "test3" ) ; currentSession ( ) . save ( pais ) ; mx . edu . um . mateo . colportor . model . Estado estado = new mx . edu . um . mate...
org . junit . Assert . assertNotNull ( estado )
trivialTestPiecesCount ( ) { org . dkf . jed2k . test . PiecePicker picker = new org . dkf . jed2k . test . PiecePicker ( 3 , 42 ) ; "<AssertPlaceHolder>" ; } getPieceCount ( ) { return pieceStatus . length ; }
org . junit . Assert . assertEquals ( 3 , picker . getPieceCount ( ) )
testGetShortFromString ( ) { short value = org . apache . activemq . artemis . utils . RandomUtil . randomShort ( ) ; org . apache . activemq . artemis . jms . client . ActiveMQMapMessage message = new org . apache . activemq . artemis . jms . client . ActiveMQMapMessage ( ) ; message . setString ( itemName , java . la...
org . junit . Assert . assertEquals ( value , message . getShort ( itemName ) )
testConcurrency_03 ( ) { iot . jcypher . concurrency . Locking lockingStrategy = iot . jcypher . concurrency . Locking . NONE ; test . concurrency . ConcurrencyTest . initDB ( lockingStrategy ) ; j_smith . setFirstName ( "Johnny<sp>boy" ) ; errors = da1 . store ( j_smith ) ; "<AssertPlaceHolder>" ; if ( ( errors . size...
org . junit . Assert . assertTrue ( errors . isEmpty ( ) )
insertTest ( ) { org . easycassandra . bean . model . Person person = getPerson ( ) ; person . setName ( org . easycassandra . bean . PersonDAOTest . NAME ) ; person . setId ( org . easycassandra . bean . PersonDAOTest . FOUR ) ; person . setYear ( org . easycassandra . bean . PersonDAOTest . YEAR ) ; org . easycassand...
org . junit . Assert . assertTrue ( dao . insert ( person ) )
loopTest ( ) { soot . jimple . infoflow . IInfoflow infoflow = initInfoflow ( ) ; java . util . List < java . lang . String > epoints = new java . util . ArrayList < java . lang . String > ( ) ; epoints . add ( "<soot.jimple.infoflow.test.OtherTestCode:<sp>void<sp>loopTest()>" ) ; infoflow . computeInfoflow ( appPath ,...
org . junit . Assert . assertEquals ( 1 , infoflow . getResults ( ) . size ( ) )
testParse ( ) { com . google . gson . Gson gson = new com . google . gson . Gson ( ) ; java . lang . String json = "" ; org . jinstagram . entity . common . InstagramErrorResponse result = org . jinstagram . entity . common . InstagramErrorResponse . parse ( gson , json ) ; "<AssertPlaceHolder>" ; } parse ( com . googl...
org . junit . Assert . assertNotNull ( result )
testStartAgent ( ) { console1 = new net . grinder . SingleConsole ( getFreePort ( ) ) ; console1 . start ( ) ; console1 . setReportPath ( new java . io . File ( "./tmp/console-home" ) ) ; "<AssertPlaceHolder>" ; net . grinder . common . GrinderProperties grinderProperties = new net . grinder . common . GrinderPropertie...
org . junit . Assert . assertThat ( console1 . getAllAttachedAgentsCount ( ) , org . hamcrest . Matchers . is ( 0 ) )
shouldPassWhenANCVisitIsTheThirdOne ( ) { java . util . Map < java . lang . String , java . lang . String > fields = org . ei . drishti . common . util . EasyMap . create ( "ancVisitNumber" , "3" ) . map ( ) ; "<AssertPlaceHolder>" ; } apply ( org . ei . drishti . util . SafeMap ) { return new org . ei . drishti . serv...
org . junit . Assert . assertTrue ( rule . apply ( new org . ei . drishti . util . SafeMap ( fields ) ) )
testIpv4LocRouterId ( ) { java . util . List list = new java . util . ArrayList ( ) ; list . add ( org . onlab . packet . Ip4Address . valueOf ( 1 ) ) ; ospfLinkTed . setIpv4LocRouterId ( list ) ; "<AssertPlaceHolder>" ; } ipv4LocRouterId ( ) { return ipv4LocRouterId ; }
org . junit . Assert . assertThat ( ospfLinkTed . ipv4LocRouterId ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
shouldMapNodeWithoutToken ( ) { stubNodeResultSet ( ) ; given ( resultSet . wasNull ( ) ) . willReturn ( false ) ; annis . model . AnnisNode node = generator . mapNode ( resultSet , tableAccessStrategy , null ) ; "<AssertPlaceHolder>" ; } isToken ( ) { return token ; }
org . junit . Assert . assertThat ( node . isToken ( ) , org . hamcrest . Matchers . is ( true ) )
testFormatting ( ) { java . lang . String [ ] cases = new java . lang . String [ ] { "" , "" , "foo" 1 , "foo" , "$$" , "foo" 1 , "$$$" , "$foo" , "$<sp>$" , "foo<sp>foo" , "$:2181" , "foo:2181" , "http://$/" , "foo" 0 } ; for ( int i = 0 ; i < ( cases . length ) ; i += 2 ) { java . lang . StringBuilder builder = new j...
org . junit . Assert . assertEquals ( cases [ ( i + 1 ) ] , builder . toString ( ) )
testSerialization ( ) { org . jfree . data . function . NormalDistributionFunction2D f1 = new org . jfree . data . function . NormalDistributionFunction2D ( 1.0 , 2.0 ) ; org . jfree . data . function . NormalDistributionFunction2D f2 = ( ( org . jfree . data . function . NormalDistributionFunction2D ) ( org . jfree . ...
org . junit . Assert . assertEquals ( f1 , f2 )
testStart_Compiled ( ) { java . lang . String main = com . englishtown . vertx . guice . integration . DependencyInjectionVerticle . class . getName ( ) ; doTest ( main ) ; verifyZeroInteractions ( com . englishtown . vertx . guice . GuiceVerticleLoaderTest . logger ) ; "<AssertPlaceHolder>" ; } doTest ( java . lang . ...
org . junit . Assert . assertEquals ( com . englishtown . vertx . guice . integration . DependencyInjectionVerticle . class , classCaptor . getValue ( ) )
testDeleteUser ( ) { qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestUsersResourceFacadeImp . entityManager . getTransaction ( ) . begin ( ) ; int result = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestUsersResourceFacadeImp . userResourceFacadeImp . deleteUser ( qa . qcri . aidr . d...
org . junit . Assert . assertEquals ( 1 , result )
testSuccessfulPending ( ) { io . netty . util . concurrent . Promise < java . lang . Void > p = mock ( io . netty . util . concurrent . Promise . class ) ; io . netty . util . concurrent . PromiseAggregator < java . lang . Void , io . netty . util . concurrent . Future < java . lang . Void > > a = new io . netty . util...
org . junit . Assert . assertThat ( a . add ( p1 , null , p2 ) , org . hamcrest . CoreMatchers . is ( a ) )
cancelTest ( ) { org . threadly . concurrent . future . SettableListenableFuture < java . lang . Object > slf = new org . threadly . concurrent . future . SettableListenableFuture ( ) ; slf . cancel ( false ) ; org . threadly . concurrent . future . ListenableFutureAdapterTask < java . lang . Object > adapter = new org...
org . junit . Assert . assertTrue ( adapter . isCancelled ( ) )
setOwnerPreviousOwnerIsNullNoCollaboratorIsAddedAndOneIsDeleted ( ) { when ( this . helper . getStringProperty ( this . entityDoc , org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . OWNER , org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . OWNER_LABEL ) ...
org . junit . Assert . assertTrue ( ownerSet )
getNumberValueFromJsonObject_input_key_null ( ) { java . lang . String jsonString = "{\"deviceId\":\"xxx-device\",\"generationId\":\"111111111111111111\",\"etag\":\"MA==\",\"connectionState\":\"Disconnected\",\"status\":\"Disabled\",\"statusReason\":null,\"connectionStateUpdatedTime\":\"0001-01-01T00:00:00\",\"statusUp...
org . junit . Assert . assertEquals ( expResult , result )
testParseNull ( ) { org . openl . rules . convertor . String2NumberConverter < java . lang . Number > converter = getNumberConverter ( ) ; "<AssertPlaceHolder>" ; } parse ( org . openl . rules . table . ILogicalTable , org . openl . rules . structure . ITableObject ) { if ( ( ( selector ) != null ) && ( ! ( selector . ...
org . junit . Assert . assertNull ( converter . parse ( null , null ) )
testSerialization3 ( ) { org . jfree . data . xy . XYSeriesCollection dataset = new org . jfree . data . xy . XYSeriesCollection ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createXYLineChart ( "Test<sp>Chart" , "Domain<sp>Axis" , "Range<sp>Axis" , dataset ) ; org . jfree . chart ...
org . junit . Assert . assertEquals ( chart , chart2 )
testSmartDataThreshold1 ( ) { com . vmware . vrack . hms . boardservice . ib . api . HddInfoHelperTest . logger . info ( "Testing<sp>hms-inband<sp>HddInfoHelperTest::isSmartDataBeyondThreshold1" ) ; try { com . vmware . vrack . hms . common . servernodes . api . hdd . HddSMARTData hddSMARTData = new com . vmware . vrac...
org . junit . Assert . assertFalse ( isDataConcerning )
testRangeFormatting ( ) { org . eclipse . jdt . core . ICompilationUnit unit = getWorkingCopy ( "src/org/sample/Baz.java" , ( "package<sp>org.sample;\n" + ( ( ( "<sp>public<sp>class<sp>Baz<sp>{\n" + "\tvoid<sp>foo(){\n" ) + "<sp>}\n" ) + "\t}\n" ) ) ) ; java . lang . String uri = org . eclipse . jdt . ls . core . inter...
org . junit . Assert . assertEquals ( expectedText , newText )
testPiPaperExample ( ) { theory . intervals . RealSolver ba = new theory . intervals . RealSolver ( ) ; java . lang . Integer init = 0 ; java . util . List < java . lang . Integer > fin = java . util . Arrays . asList ( 0 , 1 , 2 , 3 ) ; java . util . List < automata . sfa . SFAMove < theory . intervals . RealPred , ja...
org . junit . Assert . assertTrue ( learned . isEquivalentTo ( given , ba ) )
testEmptyFaultSoap11 ( ) { java . lang . String emptyFaultSoap11 = org . reficio . ws . legacy . SoapLegacyFacade . buildEmptyFault ( SoapLegacyFacade . Soap . SOAP_1_1 , org . reficio . ws . builder . MessageComplianceTest . context ) ; org . reficio . ws . builder . MessageComplianceTest . log . info ( ( "\n" + empty...
org . junit . Assert . assertEquals ( expectedMsg , emptyFaultSoap11 )
testIsFilterAvailableWithoutDDR ( ) { this . config . setSampleRate ( 1 ) ; "<AssertPlaceHolder>" ; } isFilterAvailable ( ) { boolean result = ! ( isDoubleDataRateEnabled ( ) ) ; if ( result && ( ( this . deviceProfile ) != null ) ) { result = this . deviceProfile . isNoiseFilterSupported ( ) ; } return result ; }
org . junit . Assert . assertTrue ( this . config . isFilterAvailable ( ) )
testCreateClusterWithHostMapping ( ) { java . lang . String cluster1 = org . apache . ambari . server . controller . AmbariManagementControllerTest . getUniqueName ( ) ; java . lang . String host1 = org . apache . ambari . server . controller . AmbariManagementControllerTest . getUniqueName ( ) ; java . lang . String h...
org . junit . Assert . assertNotNull ( org . apache . ambari . server . controller . AmbariManagementControllerTest . clusters . getCluster ( cluster1 ) )
testSendPrepared ( ) { final java . lang . String messageId = "testSendPrepared" ; final com . arjuna . webservices11 . wsarj . InstanceIdentifier instanceIdentifier = new com . arjuna . webservices11 . wsarj . InstanceIdentifier ( "1" ) ; javax . xml . ws . wsaddressing . W3CEndpointReference coordinatorEndpoint = com...
org . junit . Assert . assertTrue ( details . hasPrepared ( ) )
testMultipleConcurrentEPs4 ( ) { final org . kie . api . runtime . KieSession ksession = getKieSessionWith3Segments ( ) ; java . util . List < java . lang . String > results = new java . util . ArrayList ( ) ; ksession . setGlobal ( "results" , results ) ; org . drools . compiler . integrationtests . PhreakConcurrencyT...
org . junit . Assert . assertTrue ( success )
interceptCall_restoresIfNextThrows ( ) { io . grpc . Context origContext = io . grpc . Context . current ( ) ; try { io . grpc . Contexts . interceptCall ( uniqueContext , call , headers , new io . grpc . ServerCallHandler < java . lang . Object , java . lang . Object > ( ) { @ io . grpc . Override public io . grpc . S...
org . junit . Assert . assertSame ( origContext , io . grpc . Context . current ( ) )
testReturnEmptyCollectionOnNamedClusterServiceThrowMetaStoreException ( ) { org . pentaho . big . data . api . cluster . NamedClusterService namedClusterService = mock ( org . pentaho . big . data . api . cluster . NamedClusterService . class ) ; org . pentaho . big . data . kettle . plugins . oozie . OozieJobExecutorJ...
org . junit . Assert . assertEquals ( namedClusters . size ( ) , 0 )
testRestrictionsReturnedInClosure ( ) { owltools . graph . OWLGraphWrapper g = getOntologyWrapper ( ) ; g . config . isGraphReasonedAndRelaxed = false ; org . semanticweb . owlapi . model . OWLObject obj = g . getOWLObject ( "http://example.org#deformed_hippocampus" ) ; boolean ok = false ; for ( owltools . graph . OWL...
org . junit . Assert . assertTrue ( ok )
testCastCharToByte ( ) { byte expected = org . stjs . generator . exec . ints . CharToByte . method ( CharToByte . BIG_CHAR ) ; double expectedDouble = ( ( double ) ( expected ) ) ; "<AssertPlaceHolder>" ; } executeAndReturnNumber ( java . lang . Class ) { return executeAndReturnNumber ( clazz , null ) ; }
org . junit . Assert . assertEquals ( expectedDouble , executeAndReturnNumber ( org . stjs . generator . exec . ints . CharToByte . class ) , 0 )
testCreateHeaderWithSemicolon ( ) { exporter . setDelimiter ( ';' ) ; java . lang . String [ ] elements = new java . lang . String [ ] { "One" , "Two" , "Three" } ; java . lang . String expected = "\"One\";\"Two\";\"Three\"" ; "<AssertPlaceHolder>" ; } createHeader ( java . lang . String [ ] ) { java . lang . StringBuf...
org . junit . Assert . assertEquals ( expected , exporter . createHeader ( elements ) )
testVoidAndReturnedVoidAreTheExactSame ( ) { try { com . laytonsmith . core . environments . Environment env = com . laytonsmith . core . Static . GenerateStandaloneEnvironment ( true ) ; com . laytonsmith . core . natives . interfaces . Mixed returnedVoid = new ArrayHandling . array_insert ( ) . exec ( Target . UNKNOW...
org . junit . Assert . assertTrue ( ( returnedVoid == voidKeyword ) )
test_min_long_long ( ) { long result = server . bounce_long_long ( - 9223372036854775808L ) ; "<AssertPlaceHolder>" ; } bounce_long_long ( long ) { return x ; }
org . junit . Assert . assertEquals ( - 9223372036854775808L , result )
getEffectiveExceptionTypes ( ) { "<AssertPlaceHolder>" ; } getEffectiveExceptionTypes ( ) { return effectiveExceptionTypes ; }
org . junit . Assert . assertEquals ( effectiveExceptionTypes , method . getEffectiveExceptionTypes ( ) . toString ( ) )
testEvaluationNoContentFields ( ) { java . lang . String query = buildFunction ( ContentFunctions . CONTENT_WITHIN_FUNCTION_NAME , "1" , Constants . TERM_OFFSET_MAP_JEXL_VARIABLE_NAME , "'dog'" , "'cat'" ) ; org . apache . commons . jexl2 . Expression expr = datawave . query . jexl . functions . ContentFunctionsTest . ...
org . junit . Assert . assertTrue ( datawave . query . jexl . functions . ContentFunctionsTest . expect ( o , false ) )
isNameSecondCategoryShowNull_NameNull ( ) { givenModel ( newCategories ( true , "red" , "blue" ) , noEntries ( ) ) ; boolean result = ctrl . isNameSecondCategoryShowNull ( ) ; "<AssertPlaceHolder>" ; } isNameSecondCategoryShowNull ( ) { return ( ( model . getNameSecondCategory ( ) ) == null ) || ( model . getNameSecond...
org . junit . Assert . assertTrue ( result )
testBuildWithParametersAndDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . enrolment . Enrolment enrolment = new org . lnu . is . domain . enrolment . Enrolment ( ) ; org . lnu . is . domain . specoffer . SpecOfferWave specOfferWave = new ...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testGetWikidataFormId ( ) { org . wikidata . wdtk . datamodel . helpers . FormIdValue o1 = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeWikidataFormIdValue ( "L42-F1" ) ; org . wikidata . wdtk . datamodel . helpers . FormIdValue o2 = factory . getFormIdValue ( "L42-F1" , "http://www.wikidata.org/entity...
org . junit . Assert . assertEquals ( o1 , o2 )
test1 ( ) { int result = spl . shortest_path_length ( java_testcases . SHORTEST_PATH_LENGTH_TEST . length_by_edge , java_testcases . SHORTEST_PATH_LENGTH_TEST . node0 , java_testcases . SHORTEST_PATH_LENGTH_TEST . node1 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 4 , result )
testScript ( ) { try ( final io . vertigo . commons . transaction . VTransactionWritable transaction = transactionManager . createCurrentTransaction ( ) ) { final io . vertigo . dynamo . task . metamodel . TaskDefinition taskDefinition = registerTaskObject ( "TK_SCRIPT_TEST" , "select<sp>*<sp>from<sp>SUPER_HERO<sp><%if...
org . junit . Assert . assertEquals ( 10 , resultList . size ( ) )
deleteAllDataElements_empty_emptyAfterwards ( ) { dbHandler . deleteAllDataElements ( ) ; "<AssertPlaceHolder>" ; } getDataElementCount ( ) { final android . database . Cursor cursor = getReadableDatabase ( ) . rawQuery ( ( "SELECT<sp>COUNT(1)<sp>FROM<sp>" + ( io . github . data4all . handler . DataBaseHandler . TABLE_...
org . junit . Assert . assertEquals ( 0 , dbHandler . getDataElementCount ( ) )
testWriteToSequencefile ( ) { org . apache . hadoop . mapred . JobConf conf = new org . apache . hadoop . mapred . JobConf ( org . apache . hadoop . mapred . TestJavaSerialization . class ) ; conf . setJobName ( "JavaSerialization" ) ; org . apache . hadoop . fs . FileSystem fs = org . apache . hadoop . fs . FileSystem...
org . junit . Assert . assertEquals ( 1 , outputFiles . length )
sendReadsStatusCode ( com . microsoft . azure . sdk . iot . device . transport . https . HttpsConnection , java . net . URL ) { final com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod httpsMethod = com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod . GET ; final ...
org . junit . Assert . assertThat ( testStatus , org . hamcrest . CoreMatchers . is ( expectedStatus ) )
toSimpleListValue_null ( ) { "<AssertPlaceHolder>" ; } toSimpleListValue ( java . util . List ) { if ( values == null ) { return null ; } java . util . List < T > result = new java . util . ArrayList < T > ( values . size ( ) ) ; for ( software . amazon . awssdk . services . dynamodb . model . AttributeValue v : values...
org . junit . Assert . assertNull ( software . amazon . awssdk . services . dynamodb . document . internal . InternalUtils . toSimpleListValue ( null ) )
testStringFormattingEndingWithComments ( ) { java . lang . String formatted = cucumber . eclipse . editor . editors . GherkinFormatterUtil . format ( feature_with_comments_unformatted_and_formatted ) ; "<AssertPlaceHolder>" ; } format ( java . lang . String ) { java . io . StringWriter output = new java . io . StringWr...
org . junit . Assert . assertThat ( formatted , org . hamcrest . CoreMatchers . is ( feature_with_comments_unformatted_and_formatted ) )
testCoGroup ( ) { org . gradoop . common . model . impl . pojo . VertexFactory vertexFactory = getConfig ( ) . getVertexFactory ( ) ; org . gradoop . common . model . impl . pojo . Vertex v1 = vertexFactory . createVertex ( "a" ) ; org . apache . flink . api . java . tuple . Tuple2 < org . gradoop . common . model . im...
org . junit . Assert . assertArrayEquals ( expected . toArray ( ) , result . toArray ( ) )
testEventNotification ( ) { org . jfree . chart . renderer . RendererChangeDetector detector = new org . jfree . chart . renderer . RendererChangeDetector ( ) ; org . jfree . chart . renderer . category . BarRenderer r1 = new org . jfree . chart . renderer . category . BarRenderer ( ) ; r1 . addChangeListener ( detecto...
org . junit . Assert . assertTrue ( detector . getNotified ( ) )
shouldBeAbleToRetrieveTheHighestLogVersion ( ) { org . neo4j . kernel . impl . transaction . log . files . LogFiles files = createLogFiles ( ) ; org . neo4j . io . layout . DatabaseLayout databaseLayout = testDirectory . databaseLayout ( ) ; fileSystemRule . create ( databaseLayout . file ( getVersionedLogFileName ( "1...
org . junit . Assert . assertEquals ( 3 , highestLogVersion )
testPositive ( ) { java . util . Optional < java . lang . Boolean > actual = org . openhab . io . transport . modbus . ModbusBitUtilities . translateCommand2Boolean ( new org . eclipse . smarthome . core . library . types . DecimalType ( 3.4 ) ) ; "<AssertPlaceHolder>" ; } is ( org . eclipse . smarthome . core . thing ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( java . util . Optional . of ( true ) ) ) )
ifOutputIsFileNotFolderReject ( ) { java . io . File file = java . io . File . createTempFile ( getClass ( ) . getSimpleName ( ) , "tmp" ) ; "<AssertPlaceHolder>" ; testBuilder ( ) . setOutputDirectory ( file ) . build ( ) ; } exists ( ) { return new com . crawljax . test . matchers . FileMatcher ( ) ; }
org . junit . Assert . assertThat ( file . exists ( ) , org . hamcrest . core . Is . is ( true ) )
testCreateSeverityKeyByErrorValueForAllOps ( ) { java . lang . String actual = dao . createSeverityKeyByErrorValueForAllOps ( errorValue , errorToSave ) ; java . lang . String expected = "TheServerName|TheServiceAdminName|theTestConsumer|All|ERROR|true" ; "<AssertPlaceHolder>" ; } createSeverityKeyByErrorValueForAllOps...
org . junit . Assert . assertEquals ( expected , actual )
testOFPFlowActionSetQueueInteger ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionSetQueue target = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionSetQueue ( 1234 ) ; "<AssertPlaceHolder>" ; } getQueueId ( ) { return queueId ; }
org . junit . Assert . assertThat ( target . getQueueId ( ) , org . hamcrest . CoreMatchers . is ( new java . lang . Integer ( 1234 ) ) )
testAtanh ( ) { org . nd4j . linalg . api . ndarray . INDArray in = org . nd4j . linalg . factory . Nd4j . linspace ( ( - 0.9 ) , 0.9 , 10 ) ; org . nd4j . linalg . api . ndarray . INDArray out = org . nd4j . linalg . ops . transforms . Transforms . atanh ( in , true ) ; org . nd4j . linalg . api . ndarray . INDArray e...
org . junit . Assert . assertEquals ( exp , out )
withInlineComment ( ) { java . util . StringTokenizer tokenizer = new java . util . StringTokenizer ( "x<sp>--<sp>a<sp>b\n" , "<sp>" , true ) ; com . klarna . hiverunner . sql . split . Context context = new com . klarna . hiverunner . sql . split . BaseContext ( tokenizer ) ; com . klarna . hiverunner . sql . split . ...
org . junit . Assert . assertThat ( context . statement ( ) , org . hamcrest . CoreMatchers . is ( "x<sp>--<sp>a<sp>b\n" ) )
RequestAccessAndRefreshTokensUsingRefreshToken_ReturnsCorrectTokens ( ) { try { expect ( oauthService . getAccessTokens ( new com . microsoft . bingads . internal . OAuthRequestParameters ( "test_id" , "test_secret" , new java . net . URL ( "https://test.com/login" ) , "refresh_token" , "refresh_token" , "xxx" ) ) ) . ...
org . junit . Assert . assertEquals ( expectedTokenInfo , tokens )
testScriptFelix4679 ( ) { java . lang . String script = "addcommand<sp>system<sp>(((${.context}<sp>bundles)<sp>0)<sp>loadclass<sp>java.lang.System)" ; java . io . PrintStream sout = new java . io . PrintStream ( System . out ) { @ org . apache . felix . gogo . runtime . Override public void close ( ) { } } ; java . io ...
org . junit . Assert . assertNull ( c . execute ( session , null ) )
testGetUniquePrincipalNameAll ( ) { java . lang . String input = "1.2<sp>3-4_567890AbCdEfGhIJklmnoPqRSTUvwxyz" ; java . lang . String expected = "1234567890abcdefghijklmnopqrstuvwxyz" ; java . lang . String result = org . sagebionetworks . repo . model . dbo . principal . AliasUtils . getUniqueAliasName ( input ) ; "<A...
org . junit . Assert . assertEquals ( expected , result )
passwordMismatchErrorUser ( ) { usersResource . post ( new org . apache . usergrid . rest . applications . collection . users . User ( "edanuff" , "edanuff" , "edanuff@email.com" , "sesame" ) ) ; java . lang . String origPassword = "foofoo" ; java . lang . String newPassword = "barbar" ; org . apache . usergrid . rest ...
org . junit . Assert . assertEquals ( 0 , responseStatus )
givenClientCertificateSha256WhenMatchRealmThenReturnTrue ( ) { final java . util . Set < java . security . cert . X509Certificate > grantedIssuers = new java . util . HashSet ( ) ; grantedIssuers . add ( cert ) ; final fr . gouv . vitam . common . auth . core . authc . X509AuthenticationInfo info = new fr . gouv . vita...
org . junit . Assert . assertTrue ( match . doCredentialsMatch ( token , info ) )
testSaveTechnicalProductInUseLicenseNull ( ) { org . oscm . internal . vo . VOTechnicalService techProd = createTechnicalProduct ( svcProv ) ; java . lang . String license = techProd . getLicense ( ) ; techProd . setLicense ( null ) ; deleteEmptyTp_keyRecord ( techProd ) ; svcProv . saveTechnicalServiceLocalization ( t...
org . junit . Assert . assertEquals ( license , techProd . getLicense ( ) )
forEach ( ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; com . gs . collections . impl . utility . StringIterate . forEach ( "1a2b3c" , ( ( com . gs . collections . api . block . procedure . primitive . CharProcedure ) ( builder :: append ) ) ) ; "<AssertPlaceHolder>" ; } toString ( ) {...
org . junit . Assert . assertEquals ( "1a2b3c" , builder . toString ( ) )
testHoldAlt ( ) { org . opennms . gwtterminal . TermHandlerTest . SudoKeyDownEvent altPress = new org . opennms . gwtterminal . TermHandlerTest . SudoKeyDownEvent ( ALT_KEY , false , false , false ) ; termHandler . onKeyDown ( altPress ) ; "<AssertPlaceHolder>" ; } getKeybuf ( ) { return keybuf ; }
org . junit . Assert . assertEquals ( "" , termHandler . getKeybuf ( ) . toString ( ) )
matchNumber_matchedIsTrue ( ) { java . lang . String s = "123" ; com . github . sgreben . regex_builder . Pattern p = com . github . sgreben . regex_builder . Pattern . compile ( com . github . sgreben . regex_builder . Re . Re . number ( ) ) ; com . github . sgreben . regex_builder . Matcher m = p . matcher ( s ) ; "<...
org . junit . Assert . assertTrue ( m . matches ( ) )
getPreferredProcessorsWhenAssignedAndFallbackAreSet ( ) { edu . illinois . library . cantaloupe . config . Configuration config = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) ; config . setProperty ( "processor.ManualSelectionStrategy.jpg" , edu . illinois . library . cantaloupe . pr...
org . junit . Assert . assertEquals ( expected , instance . getPreferredProcessors ( Format . JPG ) )
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . language . Language context = new org . lnu . is . domain . language . Language ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Language<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org . lnu . is . pag...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testConcurrentSignals ( ) { org . eclipse . tracecompass . tmf . core . tests . signal . TmfSignalManagerTest . TestSignalHandlerNested signalResender = new org . eclipse . tracecompass . tmf . core . tests . signal . TmfSignalManagerTest . TestSignalHandlerNested ( ) ; org . eclipse . tracecompass . tmf . core . tests...
org . junit . Assert . assertEquals ( expectedOrder1 . length , signalReceiver . receivedSignals . size ( ) )
testRemoveQualityForm ( ) { org . libreplan . business . qualityforms . entities . QualityForm qualityForm = createValidQualityForm ( ) ; qualityFormDAO . save ( qualityForm ) ; qualityFormDAO . remove ( qualityForm . getId ( ) ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java . io . Serializable ) { return ( getS...
org . junit . Assert . assertFalse ( qualityFormDAO . exists ( qualityForm . getId ( ) ) )
testSetSchedulingOptions_Null ( ) { com . google . cloud . compute . deprecated . SchedulingOptions schedulingOptions = com . google . cloud . compute . deprecated . SchedulingOptions . standard ( true , SchedulingOptions . Maintenance . MIGRATE ) ; org . easymock . EasyMock . expect ( computeRpcMock . setScheduling ( ...
org . junit . Assert . assertNull ( compute . setSchedulingOptions ( com . google . cloud . compute . deprecated . ComputeImplTest . INSTANCE_ID , schedulingOptions ) )
resizerWhereSourceLargerThanDestination ( ) { net . coobird . thumbnailator . resizers . Resizer resizer = Resizers . BICUBIC ; net . coobird . thumbnailator . resizers . ResizerFactory factory = new net . coobird . thumbnailator . resizers . FixedResizerFactory ( resizer ) ; java . awt . Dimension sourceDimension = ne...
org . junit . Assert . assertEquals ( resizer , receivedResizer )
shouldReturnFirstNonNull ( ) { new org . springframework . springfaces . selectitems . SelectItemsTest . TestableSelectItems ( ) { @ org . springframework . springfaces . selectitems . Override public void test ( ) throws org . springframework . springfaces . selectitems . Exception { java . lang . Object v = firstNonN...
org . junit . Assert . assertThat ( v , org . hamcrest . CoreMatchers . is ( ( ( java . lang . Object ) ( "a" ) ) ) )
testEdgeTypeUniqueConstraintViolation ( ) { "<AssertPlaceHolder>" ; com . puresoltechnologies . ductiledb . core . graph . schema . PropertyDefinition < java . lang . String > definition = new com . puresoltechnologies . ductiledb . core . graph . schema . PropertyDefinition ( com . puresoltechnologies . ductiledb . co...
org . junit . Assert . assertNull ( com . puresoltechnologies . ductiledb . core . graph . schema . DuctileDBSchemaManagerIT . schemaManager . getPropertyDefinition ( ElementType . EDGE , "property" ) )
testImportTableNoAccumuloJarPresent ( ) { org . apache . sqoop . accumulo . AccumuloUtil . setAlwaysNoAccumuloJarMode ( true ) ; opts . setAccumuloTable ( "dummy_table" ) ; try { manager . importTable ( context ) ; org . junit . Assert . fail ( ( "An<sp>ImportException<sp>should<sp>be<sp>thrown:<sp>" + ( "Accumulo<sp>j...
org . junit . Assert . assertEquals ( e . toString ( ) , ( "Accumulo<sp>jars<sp>are<sp>not<sp>present<sp>in<sp>classpath,<sp>cannot<sp>import<sp>to<sp>" + "Accumulo!" ) )
testTransactionOnCommit ( ) { com . github . davidmoten . rx . jdbc . Database db = db ( ) ; rx . Observable < java . lang . Boolean > begin = db . beginTransaction ( ) ; rx . Observable < java . lang . Integer > updateCount = db . update ( "update<sp>person<sp>set<sp>score=?" ) . dependsOn ( begin ) . parameter ( 99 )...
org . junit . Assert . assertEquals ( 3 , count )
testClientWithAllPossibleValues ( ) { final de . saxsys . synchronizefx . core . clientserver . SynchronizeFxClient client = de . saxsys . synchronizefx . SynchronizeFxBuilder . create ( ) . client ( ) . address ( "192.168.0.1" ) . callback ( clientCallback ) . port ( 16789 ) . customSerializer ( de . saxsys . synchron...
org . junit . Assert . assertNotNull ( client )
testProjectile ( ) { world . bentobox . bentobox . listeners . flags . worldsettings . ItemFrameListener ifl = new world . bentobox . bentobox . listeners . flags . worldsettings . ItemFrameListener ( ) ; org . bukkit . entity . Entity entity = mock ( org . bukkit . entity . ItemFrame . class ) ; org . bukkit . event ....
org . junit . Assert . assertTrue ( e . isCancelled ( ) )
existingSession ( ) { final com . clouway . oauth2 . exampleapp . ResourceOwner owner = new com . clouway . oauth2 . exampleapp . ResourceOwner ( "Ivan" , "password" ) ; final com . clouway . oauth2 . Session session = new com . clouway . oauth2 . Session ( "token4321" ) ; context . checking ( new org . jmock . Expecta...
org . junit . Assert . assertTrue ( sessionIsPresented )
sizeVariableU32InTwoBytes ( ) { "<AssertPlaceHolder>" ; } sizeVariableU32 ( int ) { int val = value ; int size = 1 ; while ( val > ( com . flagstone . transform . coder . Coder . VAR_INT_MAX ) ) { size += 1 ; val = val > > > ( com . flagstone . transform . coder . Coder . VAR_INT_SHIFT ) ; } return size ; }
org . junit . Assert . assertEquals ( 2 , com . flagstone . transform . coder . Coder . sizeVariableU32 ( 255 ) )
testNowFunction ( ) { com . srotya . sidewinder . core . sql . calcite . SqlFunctions . Now function = new com . srotya . sidewinder . core . sql . calcite . SqlFunctions . Now ( ) ; long currentTimeMillis = java . lang . System . currentTimeMillis ( ) ; java . sql . Timestamp ts = function . eval ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( currentTimeMillis , ts . getTime ( ) , 5 )
testShouldReturnEmptyListWhenNoVoluntarySavingsAccountsForCentersOrGroupsWithPerIndividualStatusExist ( ) { java . util . List < org . mifos . application . servicefacade . CollectionSheetCustomerSavingDto > mandatorySavingAccounts = savingsDao . findAllVoluntarySavingAccountsForIndividualChildrenOfCentersOrGroupsWithP...
org . junit . Assert . assertTrue ( mandatorySavingAccounts . isEmpty ( ) )
validateOptionalAndNotEmpty ( ) { optionalSubject . setValue ( 1234 ) ; "<AssertPlaceHolder>" ; } validate ( ) { if ( ( isMandatory ( ) ) && ( isEmpty ( ) ) ) { throw new java . lang . IllegalStateException ( java . lang . String . format ( "field<sp>%s<sp>is<sp>mandatory<sp>and<sp>empty" , name ( ) ) ) ; } return true...
org . junit . Assert . assertEquals ( true , optionalSubject . validate ( ) )
testSimpleExcelTestCase ( ) { double result = name . abuchen . portfolio . math . IRR . calculate ( java . util . Arrays . asList ( java . time . LocalDate . of ( 2010 , Month . JANUARY , 1 ) , java . time . LocalDate . of ( 2010 , Month . DECEMBER , 31 ) ) , java . util . Arrays . asList ( ( - 200.0 ) , 210.0 ) ) ; re...
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( excel ) )
testAdjustTLSContext ( ) { de . rub . nds . tlsattacker . core . protocol . message . HelloVerifyRequestMessage message = new de . rub . nds . tlsattacker . core . protocol . message . HelloVerifyRequestMessage ( ) ; message . setCookie ( new byte [ ] { 0 , 1 , 2 , 3 } ) ; handler . adjustTLSContext ( message ) ; "<Ass...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 0 , 1 , 2 , 3 } , context . getDtlsCookie ( ) )
testIsSampleIncluded_SampleResult ( ) { System . out . println ( "isSampleIncluded" ) ; org . apache . jmeter . samplers . SampleResult res = null ; kg . apc . jmeter . graphs . AbstractGraphPanelVisualizer instance = new kg . apc . jmeter . graphs . AbstractGraphPanelVisualizerTest . AbstractGraphPanelVisualizerImpl (...
org . junit . Assert . assertEquals ( expResult , result )
testBuildTimerNormalValue ( ) { final org . opendaylight . protocol . bgp . rib . spi . state . BGPTimersState timerState = mock ( org . opendaylight . protocol . bgp . rib . spi . state . BGPTimersState . class ) ; doReturn ( 90L ) . when ( timerState ) . getNegotiatedHoldTime ( ) ; doReturn ( 5000L ) . when ( timerSt...
org . junit . Assert . assertEquals ( expectedTimers , org . opendaylight . protocol . bgp . state . NeighborUtil . buildTimer ( timerState ) )
testGetConsistencyGroups ( ) { boolean wasException = false ; try { java . util . List < com . emc . storageos . vplex . api . VPlexConsistencyGroupInfo > cgInfoList = com . emc . storageos . vplex . api . VPlexApiTest . _client . getConsistencyGroups ( ) ; for ( com . emc . storageos . vplex . api . VPlexConsistencyGr...
org . junit . Assert . assertFalse ( wasException )
testCompletedMetaModelFalseWithLessThanTwoCriteria ( ) { org . drugis . addis . presentation . wizard . MetaCriteriaAndAlternativesPresentation pm = d_pm . getMetaBRPresentation ( ) ; pm . getCriterionSelectedModel ( org . drugis . addis . ExampleData . buildEndpointHamd ( ) ) . setValue ( true ) ; pm . getMetaAnalyses...
org . junit . Assert . assertFalse ( ( ( java . lang . Boolean ) ( pm . getCompleteModel ( ) . getValue ( ) ) ) )
isOverridingResourceTypeFunctionWhenNotOverridingShouldReturnFalse ( ) { ch . puzzle . itc . mobiliar . business . function . entity . AmwFunctionEntity function2 = new ch . puzzle . itc . mobiliar . business . function . entity . AmwFunctionEntityBuilder ( "name2" , 3 ) . forResourceType ( resourceType ) . build ( ) ;...
org . junit . Assert . assertFalse ( isOverwritten )
testGetPropertyName ( ) { com . liferay . dynamic . data . mapping . form . evaluator . internal . function . SetValueFunction setValueFunction = new com . liferay . dynamic . data . mapping . form . evaluator . internal . function . SetValueFunction ( ) ; "<AssertPlaceHolder>" ; } getPropertyName ( ) { return "struts....
org . junit . Assert . assertEquals ( "value" , setValueFunction . getPropertyName ( ) )
test_LocalDate_adjustToSymmetry454Date ( ) { org . threeten . extra . chrono . Symmetry454Date sym454 = org . threeten . extra . chrono . Symmetry454Date . of ( 2012 , 7 , 19 ) ; java . time . LocalDate test = LocalDate . MIN . with ( sym454 ) ; "<AssertPlaceHolder>" ; } of ( int , int , int ) { org . threeten . extra ...
org . junit . Assert . assertEquals ( java . time . LocalDate . of ( 2012 , 7 , 20 ) , test )
testClearAllMessageAnnotationsUsingReceivedMessageWithMessageAnnotationsSection ( ) { java . lang . String symbolKeyName = "myTestSymbolName" ; java . lang . String value = "myTestValue" ; org . apache . qpid . proton . message . Message message = org . apache . qpid . proton . Proton . message ( ) ; java . util . Map ...
org . junit . Assert . assertNull ( amqpMessageFacade . getMessageAnnotations ( ) )
testList1 ( ) { final java . util . List < java . lang . Object > packages = conf . getList ( "test.threesome.one" ) ; "<AssertPlaceHolder>" ; } size ( ) { int count = 0 ; for ( final java . util . Iterator < java . lang . String > iterator = configuration . getKeys ( ) ; iterator . hasNext ( ) ; ) { iterator . next ( ...
org . junit . Assert . assertEquals ( 3 , packages . size ( ) )
testWithShardIteratorTypeAsType ( ) { java . lang . Object actual = adapter . withShardIteratorType ( com . amazonaws . services . dynamodbv2 . model . ShardIteratorType . LATEST ) ; "<AssertPlaceHolder>" ; } withShardIteratorType ( java . lang . String ) { setShardIteratorType ( shardIteratorType ) ; return this ; }
org . junit . Assert . assertEquals ( adapter , actual )
givenMapKeyWithoutHashCode_whenSearched_thenReturnsWrongValue ( ) { java . util . Map < com . baeldung . equalshashcode . WrongTeam , java . lang . String > leaders = new java . util . HashMap ( ) ; leaders . put ( new com . baeldung . equalshashcode . WrongTeam ( "New<sp>York" , "development" ) , "Anne" ) ; leaders . ...
org . junit . Assert . assertFalse ( "Anne" . equals ( myTeamleader ) )
testNextAbsentValueEmpty ( ) { org . roaringbitmap . BitmapContainer container = new org . roaringbitmap . ArrayContainer ( ) . toBitmapContainer ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { "<AssertPlaceHolder>" ; } } nextAbsentValue ( int ) { long nextAbsentBit = computeNextAbsentValue ( fromValue ) ; assert nextAbsen...
org . junit . Assert . assertEquals ( i , container . nextAbsentValue ( ( ( short ) ( i ) ) ) )
createInvalidSridGeometry ( ) { org . locationtech . jts . geom . Geometry geom = org . n52 . shetland . util . JTSHelper . createGeometryFromWKT ( "POLYGON<sp>((30<sp>10,<sp>40<sp>40,<sp>20<sp>40,<sp>10<sp>20,<sp>30<sp>10))" , 9999 ) ; org . n52 . shetland . ogc . filter . SpatialFilter filter = new org . n52 . shetla...
org . junit . Assert . assertNull ( map )