input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testListBySearchEmpty ( ) { java . util . List < uk . ac . bbsrc . tgac . miso . core . data . Study > studies = dao . listBySearch ( "" ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( studies . size ( ) ) > 0 ) )
testProjectListRefreshIntervalZeroValue ( ) { java . lang . String formString = "{\"projectListRefreshInterval\":\"0\"}" ; net . sf . json . JSONObject form = ( ( net . sf . json . JSONObject ) ( net . sf . json . JSONSerializer . toJSON ( formString ) ) ) ; com . sonyericsson . hudson . plugins . gerrit . trigger . co...
org . junit . Assert . assertEquals ( Config . DEFAULT_PROJECT_LIST_REFRESH_INTERVAL , config . getProjectListRefreshInterval ( ) )
checkPersoonBestaatNiet ( ) { final javax . persistence . Query queryMock = mock ( javax . persistence . Query . class ) ; when ( emAlleenLezen . createNativeQuery ( anyString ( ) ) ) . thenReturn ( queryMock ) ; doReturn ( queryMock ) . when ( queryMock ) . setParameter ( anyString ( ) , anyInt ( ) ) ; when ( queryMoc...
org . junit . Assert . assertFalse ( bestaat )
shouldFailWebSocketConnectionWhenServerSendCloseFrameWithRsv7 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any (...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
testFlatIndexPointInterval ( ) { org . nd4j . linalg . api . ndarray . INDArray zeros = org . nd4j . linalg . factory . Nd4j . zeros ( 1 , 4 ) . castTo ( DataType . DOUBLE ) ; org . nd4j . linalg . indexing . INDArrayIndex x = org . nd4j . linalg . indexing . NDArrayIndex . point ( 0 ) ; org . nd4j . linalg . indexing ...
org . junit . Assert . assertEquals ( assertion , zeros )
same ( ) { java . lang . Object o1 = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertSame ( o1 , o1 )
isNotAScalar ( ) { com . groupon . lex . metrics . timeseries . WithoutTagAggregationClause clause = new com . groupon . lex . metrics . timeseries . WithoutTagAggregationClause ( java . util . Arrays . asList ( "foo" ) ) ; "<AssertPlaceHolder>" ; } isScalar ( ) { return ( ! ( keep_common_ ) ) && ( tags_ . isEmpty ( ) ...
org . junit . Assert . assertFalse ( clause . isScalar ( ) )
testReadProductNodes_WithInvalidSensingStop ( ) { final java . lang . String start = Header . SENSING_START ; final java . lang . String stop = Header . SENSING_STOP ; final java . lang . String sensingStartStop = ( ( start + "<sp>=<sp>16-jan-1998<sp>5:6:7,<sp>" ) + stop ) + "<sp>=<sp>jkhadsf" ; final java . lang . Str...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( Header . SENSING_STOP ) )
shouldLoginWhenUserExists ( ) { when ( dao . find ( user . getLogin ( ) , user . getPassword ( ) ) ) . thenReturn ( user ) ; controller . login ( user . getLogin ( ) , user . getPassword ( ) ) ; "<AssertPlaceHolder>" ; } getErrors ( ) { return errors ; }
org . junit . Assert . assertThat ( validator . getErrors ( ) , org . hamcrest . Matchers . empty ( ) )
shouldCheckGetCustomerByIdResponse ( ) { javax . ws . rs . core . Response response = org . agoncal . sample . jaxrs . testing . CustomerCRUDRestServiceIT . client . target ( "http://localhost:8282/customer/1234" ) . request ( ) . get ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testInvocationStatisticsCalculator ( ) { facebook4j . management . InvocationStatisticsCalculator calc = new facebook4j . management . InvocationStatisticsCalculator ( "foo" , 5 ) ; "<AssertPlaceHolder>" ; checkCalculator ( calc , 0 , 0 , 0 , 0 ) ; calc . increment ( 100 , true ) ; checkCalculator ( calc , 1 , 0 , 100 ...
org . junit . Assert . assertThat ( calc . getName ( ) , org . hamcrest . CoreMatchers . is ( "foo" ) )
shouldBeAbleToUseSpringData ( ) { template . opsForValue ( ) . set ( "foo" , "bar" ) ; java . lang . String result = template . opsForValue ( ) . get ( "foo" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "bar" , result )
testDropout ( ) { for ( weka . dl4j . dropout . AbstractDropout dropout : new weka . dl4j . dropout . AbstractDropout [ ] { new weka . dl4j . dropout . AlphaDropout ( ) , new weka . dl4j . dropout . Dropout ( ) , new weka . dl4j . dropout . GaussianDropout ( ) , new weka . dl4j . dropout . GaussianNoise ( ) } ) { wrapp...
org . junit . Assert . assertEquals ( dropout , wrapper . getDropout ( ) )
testParseTraffic80 ( ) { org . json . simple . JSONObject actual = parser . parse ( org . apache . metron . parsers . paloalto . BasicPaloAltoFirewallParserTest . TRAFFIC_80 . getBytes ( ) ) . get ( 0 ) ; org . json . simple . JSONObject expected = new org . json . simple . JSONObject ( ) ; expected . put ( BasicPaloAl...
org . junit . Assert . assertEquals ( expected , actual )
shouldGiveVoiceMailAlphaTag ( ) { org . robolectric . Shadows . shadowOf ( telephonyManager ) . setVoiceMailAlphaTag ( "tag" ) ; "<AssertPlaceHolder>" ; } getVoiceMailAlphaTag ( ) { return voiceMailAlphaTag ; }
org . junit . Assert . assertEquals ( "tag" , telephonyManager . getVoiceMailAlphaTag ( ) )
testLista ( ) { log . debug ( "Ayudante<sp>General" 0 ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . AFEPlaza afePlaza = null ; for ( int i = 0 ; i < 5 ; i ++ ) { afePlaza = new mx . edu . um . mateo . inscripciones . model . AFEPlaza...
org . junit . Assert . assertNotNull ( afePlaza . getId ( ) )
testAllFiles ( ) { java . io . File dir = new java . io . File ( "./src/test/testdata/flatfileparser" ) ; java . io . File [ ] files = dir . listFiles ( ) ; "<AssertPlaceHolder>" ; long start = java . lang . System . currentTimeMillis ( ) ; com . gs . fw . common . freyaxml . test . flatfileparser . FlatFileParserUnmar...
org . junit . Assert . assertTrue ( ( ( files . length ) > 0 ) )
testDefaultJoinOnTwoCustomTypeInputsWithInnerClassKeyExtractorsDisabledClosureCleaner ( ) { final org . apache . flink . api . java . ExecutionEnvironment env = org . apache . flink . api . java . ExecutionEnvironment . getExecutionEnvironment ( ) ; env . getConfig ( ) . disableClosureCleaner ( ) ; org . apache . flink...
org . junit . Assert . assertTrue ( correctExceptionTriggered )
testIfUserCanDeleteOnPlaybackQuery ( ) { com . datasift . client . DataSiftResult delete = datasift . historics ( ) . delete ( id ) . sync ( ) ; "<AssertPlaceHolder>" ; } isSuccessful ( ) { return ( ( ( ( ! ( failed ) ) && ( ( response ) != null ) ) && ( ( error ) == null ) ) && ( ( response . status ( ) ) > 199 ) ) &&...
org . junit . Assert . assertTrue ( delete . isSuccessful ( ) )
testSerializationRoundTrip ( ) { java . util . List < com . github . davidmoten . rtree3d . Entry < java . lang . Object , com . github . davidmoten . rtree3d . geometry . Point > > entries = com . github . davidmoten . rtree3d . GreekEarthquakes . entriesList ( ) ; int maxChildren = 8 ; com . github . davidmoten . rtr...
org . junit . Assert . assertNotNull ( tree2 )
marshalProviders ( ) { final java . lang . String jsonExpected = "{\"providers\":[{\"entityId\":\"provider1\"}]}" ; final org . sentilo . web . catalog . domain . PlatformAdminInputMessage message = new org . sentilo . web . catalog . domain . PlatformAdminInputMessage ( buildMockProviders ( ) ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( jsonExpected , converter . marshal ( message ) )
coalesceTokenRangesBy200TokensPerSegmentTests ( ) { io . cassandrareaper . service . SegmentGenerator sg = new io . cassandrareaper . service . SegmentGenerator ( java . math . BigInteger . valueOf ( 1 ) , java . math . BigInteger . valueOf ( 1500 ) ) ; java . util . Map < java . util . List < java . lang . String > , ...
org . junit . Assert . assertEquals ( 7 , segments . size ( ) )
testMultiRowRangeFilterWithEmptyStartRow ( ) { tableName = org . apache . hadoop . hbase . TableName . valueOf ( name . getMethodName ( ) ) ; org . apache . hadoop . hbase . client . Table ht = org . apache . hadoop . hbase . filter . TestMultiRowRangeFilter . TEST_UTIL . createTable ( tableName , family , Integer . MA...
org . junit . Assert . assertEquals ( ( ( results1 . size ( ) ) + ( results2 . size ( ) ) ) , resultsSize )
testOverrideRefreshErrorLogCustom ( ) { java . util . concurrent . atomic . AtomicBoolean loggedAsDebug = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; org . slf4j . Logger logger = mock ( org . slf4j . Logger . class ) ; doAnswer ( ( vars ) -> { loggedAsDebug . set ( true ) ; return null ; } ) . wh...
org . junit . Assert . assertTrue ( loggedAsDebug . get ( ) )
andtest3 ( ) { final int [ ] arrayand = new int [ 11256 ] ; int pos = 0 ; final org . roaringbitmap . RoaringBitmap rr = new org . roaringbitmap . RoaringBitmap ( ) ; for ( int k = 4000 ; k < 4256 ; ++ k ) { rr . add ( k ) ; } for ( int k = 65536 ; k < ( 65536 + 4000 ) ; ++ k ) { rr . add ( k ) ; } for ( int k = 3 * 65...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( arrayand , arrayres ) )
menuShouldHaveItems ( ) { final java . util . List < lcmc . common . ui . utils . UpdatableItem > items = proxyHostMenu . getPulldownMenu ( proxyHostInfoStub ) ; verify ( menuItemStub , times ( 2 ) ) . predicate ( ( ( lcmc . common . domain . Predicate ) ( anyObject ( ) ) ) ) ; verify ( menuItemStub , times ( 2 ) ) . v...
org . junit . Assert . assertEquals ( 7 , items . size ( ) )
testHasNoResources ( ) { "<AssertPlaceHolder>" ; } hasResources ( ) { return ! ( resources . isEmpty ( ) ) ; }
org . junit . Assert . assertFalse ( application . hasResources ( ) )
testSerialization ( ) { org . jfree . chart . needle . PinNeedle n1 = new org . jfree . chart . needle . PinNeedle ( ) ; org . jfree . chart . needle . PinNeedle n2 = ( ( org . jfree . chart . needle . PinNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } equals ( java . ...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
testFunctionalObjPropInconsistency ( ) { manager . addAxiom ( ontology , ObjectPropertyAssertion ( r1 , a , b ) ) ; manager . addAxiom ( ontology , ObjectPropertyAssertion ( r1 , a , c ) ) ; manager . addAxiom ( ontology , FunctionalObjectProperty ( r1 ) ) ; startReasoner ( ) ; boolean consistent = reasoner . isConsist...
org . junit . Assert . assertFalse ( consistent )
testNoIndexPlanWithNoRestrictions ( ) { org . apache . jackrabbit . oak . query . ast . SelectorImpl selector = mock ( org . apache . jackrabbit . oak . query . ast . SelectorImpl . class ) ; org . apache . jackrabbit . oak . plugins . index . solr . query . SolrQueryIndex solrQueryIndex = new org . apache . jackrabbit...
org . junit . Assert . assertEquals ( 0 , plans . size ( ) )
testBuildMappings ( ) { org . hibernate . boot . Metadata metadata = org . hibernate . tool . api . metadata . MetadataDescriptorFactory . createJdbcDescriptor ( null , null , true ) . createMetadata ( ) ; "<AssertPlaceHolder>" ; } createMetadata ( ) { java . util . Properties properties = new java . util . Properties ...
org . junit . Assert . assertNotNull ( metadata )
testDataSourceEmpty ( ) { try ( org . mariadb . jdbc . MariaDbPoolDataSource ds = new org . mariadb . jdbc . MariaDbPoolDataSource ( ) ) { ds . setDatabaseName ( database ) ; ds . setPort ( port ) ; ds . setServerName ( ( ( hostname ) == null ? "localhost" : hostname ) ) ; try ( java . sql . Connection connection = ds ...
org . junit . Assert . assertEquals ( connection . isValid ( 0 ) , true )
profileName ( ) { org . apache . taverna . scufl2 . api . profiles . Profile p = new org . apache . taverna . scufl2 . api . profiles . Profile ( ) ; java . util . UUID uuid = java . util . UUID . fromString ( p . getName ( ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( 4 , uuid . version ( ) )
convertObjectWithArrayField ( ) { final io . mewbase . bson . BsonObject bson = new io . mewbase . bson . BsonObject ( ) . put ( "mind" , new io . mewbase . bson . BsonArray ( ) . add ( "blown" ) ) ; final javax . json . JsonObject json = javax . json . Json . createObjectBuilder ( ) . add ( "mind" , javax . json . Jso...
org . junit . Assert . assertEquals ( json , io . mewbase . bson . BsonCodec . bsonObjectToJsonObject ( bson ) )
fontTest04 ( ) { java . lang . String shorthandExpression = "bold<sp>Georgia,<sp>serif,<sp>\"Times<sp>New<sp>Roman\"" ; java . util . Set < java . lang . String > expectedResolvedProperties = new java . util . HashSet ( java . util . Arrays . asList ( "font-style:<sp>initial" , "font-variant:<sp>initial" , "font-weight...
org . junit . Assert . assertNotNull ( resolver )
testAddAdditionalAnnotatedTypeWithPresentClass ( ) { addExtension ( new org . apache . webbeans . test . portable . addannotated . extension . AddAdditionalAnnotatedTypeExtension ( ) ) ; startContainer ( AddAdditionalAnnotatedTypeExtension . MyBean . class ) ; javax . enterprise . inject . spi . Bean < ? > bean = getBe...
org . junit . Assert . assertNotNull ( bean )
testCountWhere ( ) { for ( int i = 0 ; i < 100 ; i ++ ) { manager . save ( new org . jumpmind . db . sql . SqlPersistenceManagerTest . A ( ( i + 1 ) , new java . util . Date ( ) , "Test" ) ) ; } java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String ,...
org . junit . Assert . assertEquals ( 1 , manager . count ( org . jumpmind . db . sql . SqlPersistenceManagerTest . A . class , params ) )
testSimpleOrFilterPatternCEP ( ) { org . apache . flink . streaming . api . environment . StreamExecutionEnvironment env = org . apache . flink . streaming . api . environment . StreamExecutionEnvironment . getExecutionEnvironment ( ) ; org . apache . flink . streaming . api . datastream . DataStream < org . apache . f...
org . junit . Assert . assertEquals ( expected , resultList )
testNewRing_int_String ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IRing ring = builder . newInstance ( org . openscience . cdk . interfaces . IRing . class , 5 , ...
org . junit . Assert . assertNotNull ( ring )
testMultiProjection ( ) { org . eclipse . rdf4j . query . algebra . Extension extension = new org . eclipse . rdf4j . query . algebra . Extension ( new org . eclipse . rdf4j . query . algebra . SingletonSet ( ) , new org . eclipse . rdf4j . query . algebra . ExtensionElem ( new org . eclipse . rdf4j . query . algebra ....
org . junit . Assert . assertEquals ( expected , visitor . getConsequents ( ) )
findCarsByYearNoNamed ( ) { final javax . persistence . StoredProcedureQuery storedProcedure = com . baeldung . jpa . storedprocedure . StoredProcedureLiveTest . entityManager . createStoredProcedureQuery ( "FIND_CAR_BY_YEAR" , com . baeldung . jpa . model . Car . class ) . registerStoredProcedureParameter ( 1 , com . ...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 2015 ) , ( ( com . baeldung . jpa . model . Car ) ( c ) ) . getYear ( ) )
testPriorityLevel16 ( ) { int n = jannovar . common . VariantType . priorityLevel ( VariantType . ncRNA_SPLICING ) ; "<AssertPlaceHolder>" ; } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : case NON_FS_SUBSTITUTION : case FS_SUBSTITUTION : case MISSENSE : case...
org . junit . Assert . assertEquals ( 2 , n )
testSave ( ) { final nl . bzk . brp . model . operationeel . ber . BerichtStandaardGroepModel standaardGroepModel = new nl . bzk . brp . model . operationeel . ber . BerichtStandaardGroepModel ( null , new nl . bzk . brp . model . algemeen . attribuuttype . ber . BerichtdataAttribuut ( "test" ) , null ) ; final nl . bz...
org . junit . Assert . assertNotNull ( bericht . getID ( ) )
testCreateProxy_shouldInvokeProxyFactory ( ) { java . util . Map < java . lang . String , java . lang . String > attributes = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; attributes . put ( "portId" , "jms+json" ) ; attributes . put ( "destination" , "localhost" ) ; attributes . put (...
org . junit . Assert . assertThat ( service . getInstanceId ( ) , org . hamcrest . CoreMatchers . is ( connectorId . toString ( ) ) )
partiallyEscapedStringToURI ( ) { java . net . URI uri = TestConstants . SPECIAL_URI . getXmldbURI ( ) ; java . lang . String escaped = TestConstants . SPECIAL_NAME . replaceAll ( "%20" , "<sp>" ) . replaceAll ( "%C3%A0" , "à" ) ; org . exist . xquery . value . AnyURIValue anyUri = new org . exist . xquery . value . An...
org . junit . Assert . assertEquals ( anyUri . toURI ( ) , uri )
shouldMarkTransitionFromNonSuperadminToSuperadminAsInvalid ( ) { stubSecurityContextWithAuthentication ( ) ; stubRoleTransition ( "99anyOtherRole" , com . qcadoo . security . internal . validators . ROLE_SUPERADMIN ) ; final boolean isValid = userRoleValidationService . checkUserCreatingSuperadmin ( userDataDefMock , u...
org . junit . Assert . assertFalse ( isValid )
testFilter_MY_ALL_And_NONE ( ) { final org . eclipse . jgit . revwalk . RevCommit a = commit ( ) ; final org . eclipse . jgit . revwalk . RevCommit b = commit ( a ) ; final org . eclipse . jgit . revwalk . RevCommit c = commit ( b ) ; rw . setRevFilter ( org . eclipse . jgit . revwalk . filter . AndRevFilter . create (...
org . junit . Assert . assertNull ( rw . next ( ) )
shouldReturnTrueWhenCheckIfIsMoreThatFiveDays ( ) { given ( assignmentToShiftXlsHelper . getNumberOfDaysBetweenGivenDates ( assignmentToShiftReport ) ) . willReturn ( 3 ) ; boolean result = hooks . checkIfIsMoreThatFiveDays ( assignmentToShiftReportDD , assignmentToShiftReport ) ; "<AssertPlaceHolder>" ; verify ( assig...
org . junit . Assert . assertTrue ( result )
getAttribute_A$String_NotExist ( ) { com . m3 . globalsession . GlobalHttpSession globalHttpSession = getInstance ( ) ; java . lang . String name = "name" ; java . lang . Object actual = globalHttpSession . getAttribute ( name ) ; java . lang . Object expected = null ; "<AssertPlaceHolder>" ; } getAttribute ( java . la...
org . junit . Assert . assertThat ( actual , is ( equalTo ( expected ) ) )
testConstructors ( ) { gov . sandia . cognition . learning . function . scalar . HardTanHFunction instance = new gov . sandia . cognition . learning . function . scalar . HardTanHFunction ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( instance )
testGenerateInvalidPayloadExceptionMessageWithEmbeddedStartOfBlock ( ) { byte [ ] basePayload = org . apache . camel . component . mllp . internal . Hl7UtilTest . TEST_MESSAGE . getBytes ( ) ; java . io . ByteArrayOutputStream payloadStream = new java . io . ByteArrayOutputStream ( ( ( basePayload . length ) + 1 ) ) ; ...
org . junit . Assert . assertEquals ( expected , org . apache . camel . component . mllp . internal . Hl7Util . generateInvalidPayloadExceptionMessage ( payloadStream . toByteArray ( ) ) )
testSetTrafficMatrix ( ) { cern . colt . matrix . tdouble . DoubleMatrix2D m = DoubleFactory2D . dense . make ( np . getNumberOfNodes ( ) , np . getNumberOfNodes ( ) , 3.0 ) ; np . setTrafficMatrix ( m , RoutingType . SOURCE_ROUTING , lowerLayer ) ; for ( com . net2plan . interfaces . networkDesign . Demand d : np . ge...
org . junit . Assert . assertEquals ( d . getOfferedTraffic ( ) , 3.0 , 0 )
testFloor ( ) { lombok . val arrayX = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) ; arrayX . assign ( 3.0 ) ; lombok . val exp = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) . assign ( 3.0 ) ; org . nd4j . linalg . api . ops . CustomOp op = org . nd4j . linalg . api . ops . DynamicCustomOp . ...
org . junit . Assert . assertEquals ( exp , arrayX )
whenRouteStateIsSetWithGenericMethodAndCapacity_itMustBeSetCorrectly ( ) { com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute route = getRoute ( mock ( com . graphhopper . jsprit . core . problem . vehicle . Vehicle . class ) ) ; com . graphhopper . jsprit . core . algorithm . state . StateMa...
org . junit . Assert . assertEquals ( 500 , getCap . get ( 0 ) )
testHttpSession ( ) { com . gargoylesoftware . htmlunit . WebClient client = new com . gargoylesoftware . htmlunit . WebClient ( ) ; client . setThrowExceptionOnFailingStatusCode ( true ) ; com . gargoylesoftware . htmlunit . Page page = client . getPage ( ( ( url ) + "/test" ) ) ; java . lang . String id = page . getW...
org . junit . Assert . assertFalse ( id . isEmpty ( ) )
testClusterSnapshotControl ( ) { final io . vlingo . actors . testkit . TestActor < io . vlingo . cluster . model . ClusterSnapshotControl > control = testWorld . actorFor ( io . vlingo . cluster . model . ClusterSnapshotControl . class , io . vlingo . actors . Definition . has ( io . vlingo . cluster . model . Cluster...
org . junit . Assert . assertEquals ( 1 , application . stop . get ( ) )
testListLabelOfClosure ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "grammar<sp>P;\n" + "a<sp>:<sp>x+=ID*;" ) ) ; java . lang . String expecting = "(rule<sp>a<sp>ARG<sp>RET<sp>scope<sp>(BLOCK<sp>(ALT<sp>(*<sp>(BLOCK<sp>(ALT<sp>(+=<sp>x<sp>ID)<sp><end-of-alt>)<sp><end-of-block>))<sp><end-o...
org . junit . Assert . assertEquals ( expecting , found )
testGeenGeefDetailsPersoonDienst ( ) { final nl . bzk . brp . domain . leveringmodel . MetaObject persoon = nl . bzk . brp . domain . leveringmodel . MetaObject . maakBuilder ( ) . metObjectElement ( getObjectElement ( Element . PERSOON . getId ( ) ) ) . metGroep ( ) . metGroepElement ( getGroepElement ( Element . PERS...
org . junit . Assert . assertTrue ( isGroepGeautoriseerd ( Element . PERSOON_GEBOORTE ) )
createTreeSet_varArgs_withNull ( ) { java . util . Set < java . lang . Integer > set = createTreeSet ( ( ( java . lang . Integer [ ] ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } createTreeSet ( V extends T [ ] ) { return ( ( java . util . TreeSet < T > ) ( com . alibaba . citrus . util . CollectionUtil . createTreeSet ( ...
org . junit . Assert . assertTrue ( ( set instanceof java . util . TreeSet < ? > ) )
testNotEmptyCollectionParameter ( ) { com . twelvemonkeys . lang . List < java . lang . Integer > collection = com . twelvemonkeys . lang . Collections . singletonList ( 1 ) ; "<AssertPlaceHolder>" ; } notEmpty ( T extends com . twelvemonkeys . lang . CharSequence , java . lang . String ) { if ( ( ( pParameter == null ...
org . junit . Assert . assertSame ( collection , com . twelvemonkeys . lang . Validate . notEmpty ( collection , "bar" ) )
receiveThrowsTransportExceptionOnAnythingOtherThenPatchDesiredProp ( ) { final byte [ ] actualPayload = "NotificationResponseDataContainingDesiredPropertiesDocument" . getBytes ( ) ; final java . lang . String expectedTopic = ( "$iothub/twin/PATCH/properties/" + "?$version=" ) + ( mockVersion ) ; com . microsoft . azur...
org . junit . Assert . assertNull ( receivedMessage )
testGetAllCriteriaTypes ( ) { java . lang . String fieldName1 = "alpha" ; java . lang . String fieldName2 = "bravo" ; java . lang . String fieldName3 = "charlie" ; java . lang . String fieldName4 = "delta" ; java . lang . String fieldName5 = "sigma" ; int wlProgramId1 = 1 ; int wlProgramId2 = 222 ; org . oscarehr . PMm...
org . junit . Assert . assertTrue ( true )
shouldReturnFeatureWithSameNameInDifferentClassDisabledGivenFeatureIsSetToDisabled ( ) { java . lang . reflect . Method method = org . flips . fixture . TestClientFlipAnnotationsWithAnnotationsOnMethod . class . getMethod ( "featureWithSameMethodNameInDifferentClass" ) ; boolean result = flipAnnotationsStore . isFeatur...
org . junit . Assert . assertEquals ( false , result )
getServerPort_defaultPort_expect443 ( ) { javax . servlet . http . HttpServletRequest req = new com . amazonaws . serverless . proxy . internal . servlet . AwsProxyHttpServletRequest ( getRequestWithHeaders ( ) , null , null ) ; "<AssertPlaceHolder>" ; } getServerPort ( ) { if ( ( request . getMultiValueHeaders ( ) ) =...
org . junit . Assert . assertEquals ( 443 , req . getServerPort ( ) )
whenCreatedWithInt_equalsAnotherWithSameValue ( ) { io . kubernetes . client . custom . IntOrString intOrString1 = new io . kubernetes . client . custom . IntOrString ( 17 ) ; io . kubernetes . client . custom . IntOrString intOrString2 = new io . kubernetes . client . custom . IntOrString ( 17 ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertThat ( intOrString1 , org . hamcrest . Matchers . equalTo ( intOrString2 ) )
i02c ( ) { boolean r = proxy . httpStatusReturnBool404 ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( false , r )
testMapDeserializationSingleEntry ( ) { java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , java . lang . Object > map2 = new java . util . HashMap ( ) ; map2 . put ( "entry" , new java . util . HashMap ( ) ) ; expected ...
org . junit . Assert . assertEquals ( expected , actual )
testElimina ( ) { log . debug ( "Test<sp>'elimina'<sp>paquete" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . Paquete paquete = new mx . edu . um . mateo . inscripciones . model . Paquete ( ) ; paquete . setAcfe ( "a" ) ; paquete . se...
org . junit . Assert . assertNotNull ( paquete )
testGetSchemaNames ( ) { org . talend . components . marketo . runtime . MarketoSourceOrSink spy = spy ( sos ) ; spy . initialize ( null , getTestProps ( ) ) ; doReturn ( client ) . when ( spy ) . getClientService ( any ( ) ) ; doReturn ( getLeadRecordResult ( false ) ) . when ( client ) . listCustomObjects ( any ( org...
org . junit . Assert . assertNotNull ( spy . getSchemaNames ( null ) )
testDeleteZoneOperation_True ( ) { org . easymock . EasyMock . expect ( computeRpcMock . deleteZoneOperation ( com . google . cloud . compute . deprecated . ComputeImplTest . ZONE_OPERATION_ID . getZone ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . ZONE_OPERATION_ID . getOperation ( ) ) ) . andR...
org . junit . Assert . assertTrue ( compute . deleteOperation ( com . google . cloud . compute . deprecated . ComputeImplTest . ZONE_OPERATION_ID ) )
minusEarlierInterval ( ) { net . time4j . range . DateInterval i1 = net . time4j . range . DateInterval . between ( net . time4j . PlainDate . of ( 2014 , 2 , 28 ) , net . time4j . PlainDate . of ( 2014 , 5 , 31 ) ) ; net . time4j . range . DateInterval i2 = net . time4j . range . DateInterval . between ( net . time4j ...
org . junit . Assert . assertThat ( windows . minus ( earlier ) , org . hamcrest . CoreMatchers . is ( windows ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . social . kernel . model . SocialActivityAchievement newSocialActivityAchievement = addSocialActivityAchievement ( ) ; com . liferay . social . kernel . model . SocialActivityAchievement existingSocialActivityAchievement = _persistence . findByPrimaryKey ( newSocialActi...
org . junit . Assert . assertEquals ( existingSocialActivityAchievement , newSocialActivityAchievement )
test_minus_Period_zero ( ) { java . time . OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500 . minus ( MockSimplePeriod . ZERO_DAYS ) ; "<AssertPlaceHolder>" ; } minus ( int ) { return compileOperation ( new org . apache . xpath . operations . Minus ( ) , opPos ) ; }
org . junit . Assert . assertSame ( t , TEST_2008_6_30_11_30_59_000000500 )
testCreateSubmissionNotification_Individual ( ) { sub . setTeamId ( null ) ; java . util . List < org . sagebionetworks . repo . manager . MessageToUserAndBody > result = submissionManager . createSubmissionNotifications ( org . sagebionetworks . evaluation . manager . SubmissionManagerTest . userInfo , sub , null , or...
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
testConvertWithDisabledDefaultConstraint ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . benefit . BenefitType context = new org . lnu . is . domain . benefit . BenefitType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>BenefitType<sp>e<sp>" ; org . lnu . is . ...
org . junit . Assert . assertEquals ( expected , actualQuery )
testCreateAndOpenToWrite ( ) { nf . getGroup ( "/a/b/c" , true ) ; nf . close ( ) ; nf . createAndOpenToWrite ( ) ; try { nf . getGroup ( "/a/b/c" , false ) ; org . junit . Assert . fail ( "Group<sp>should<sp>not<sp>exist<sp>as<sp>old<sp>file<sp>should<sp>have<sp>been<sp>overwritten" ) ; } catch ( org . eclipse . dawns...
org . junit . Assert . assertNotNull ( nf . getGroup ( "/e/f/g" , false ) )
testSelectBitwiseOr ( ) { if ( ! ( accessStackAdapter . supportsBitwiseOps ( ) ) ) { return ; } createNumericsDataSet ( ) ; org . apache . cayenne . exp . Expression left = new org . apache . cayenne . exp . parser . ASTBitwiseOr ( new java . lang . Object [ ] { new org . apache . cayenne . exp . parser . ASTObjPath ( ...
org . junit . Assert . assertEquals ( 2 , objects . size ( ) )
getByKeys_not_normalized ( ) { final net . ripe . db . whois . common . rpsl . RpslObject rpslObject = net . ripe . db . whois . common . rpsl . RpslObject . parse ( ( "" + ( ( "inet6num:<sp>2001:0658:021A::/48\n" + "netname:<sp>NETNAME\n" ) + "source:<sp>RIPE\n" ) ) ) ; databaseHelper . addObject ( rpslObject ) ; fina...
org . junit . Assert . assertThat ( byKeys , org . hamcrest . Matchers . contains ( rpslObject ) )
testSubtractValuePrimitive ( ) { final org . apache . commons . lang3 . mutable . MutableShort mutNum = new org . apache . commons . lang3 . mutable . MutableShort ( ( ( short ) ( 1 ) ) ) ; mutNum . subtract ( ( ( short ) ( 1 ) ) ) ; "<AssertPlaceHolder>" ; } shortValue ( ) { return value ; }
org . junit . Assert . assertEquals ( ( ( short ) ( 0 ) ) , mutNum . shortValue ( ) )
testMatchedCommunities ( ) { org . batfish . datamodel . routing_policy . expr . LiteralCommunity l = new org . batfish . datamodel . routing_policy . expr . LiteralCommunity ( 1L ) ; java . util . Set < java . lang . Long > communityCandidates = com . google . common . collect . ImmutableSet . of ( 1L , 2L ) ; "<Asser...
org . junit . Assert . assertThat ( l , matchedCommunities ( null , communityCandidates , com . google . common . collect . ImmutableSet . of ( 1L ) ) )
testString ( ) { out . writeUTF ( "Ein<sp>test<sp>string" ) ; out . close ( ) ; "<AssertPlaceHolder>" ; } readUTF ( ) { return java . io . DataInputStream . readUTF ( this ) ; }
org . junit . Assert . assertEquals ( "Ein<sp>test<sp>string" , in . readUTF ( ) )
testNullResponse ( ) { com . ibm . ws . microprofile . openapi . impl . validation . ResponseValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . ResponseValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = new com . ibm . ws . m...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
getCriterias ( ) { com . cetsoft . imcache . cache . search . criteria . BetweenCriteria betweenCriteria = new com . cetsoft . imcache . cache . search . criteria . BetweenCriteria ( "a" , lowerBound , upperBound ) ; doReturn ( result ) . when ( cacheIndex ) . between ( lowerBound , upperBound ) ; java . util . List < ...
org . junit . Assert . assertEquals ( result , actualResult )
shouldBeAbleToEncryptAndDecryptPassword ( ) { java . lang . String passwordHash = com . rapidftr . utils . EncryptionUtil . encrypt ( "password" , "username" , "password" ) ; java . lang . String password = com . rapidftr . utils . EncryptionUtil . decrypt ( "password" , "username" , passwordHash ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( "password" , password )
leesAlsCacheNietBestaatEnSchrijfNietWeg ( ) { final int persoonId = 2000001 ; verwijderPersoonCache ( persoonId ) ; afnemerIndicatieBlobifierService . leesBlob ( persoonId ) ; final nl . bzk . brp . model . operationeel . kern . PersoonCacheModel cacheNieuw = haalCacheVoorPersoonId ( persoonId ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertNull ( cacheNieuw )
testGetsCurrentPageId ( ) { com . eclipsesource . tabris . internal . ui . Controller controller = mock ( com . eclipsesource . tabris . internal . ui . Controller . class ) ; when ( controller . getCurrentPageId ( ) ) . thenReturn ( "foo" ) ; com . eclipsesource . tabris . internal . ui . UIImpl ui = new com . eclipse...
org . junit . Assert . assertEquals ( "foo" , id )
testReadRegularNetCDF ( ) { org . geotools . imageio . netcdf . NetCDFImageReaderSpi readerSpi = new org . geotools . imageio . netcdf . NetCDFImageReaderSpi ( ) ; java . io . File file = null ; java . lang . String name = "2DLatLonCoverageHDF5.nc" ; try { file = org . geotools . test . TestData . file ( this , name ) ...
org . junit . Assert . assertTrue ( readerSpi . canDecodeInput ( file ) )
givenAnIntArray_whenNotUsingStream_thenFindSum ( ) { int [ ] array = new int [ ] { 1 , 3 , 4 , 8 , 19 , 20 } ; int expectedSumOfArray = 55 ; int actualSumOfArray = com . baeldung . array . SumAndAverageInArray . findSumWithoutUsingStream ( array ) ; "<AssertPlaceHolder>" ; } findSumWithoutUsingStream ( int [ ] ) { int ...
org . junit . Assert . assertEquals ( expectedSumOfArray , actualSumOfArray )
forEachFromTo ( ) { org . eclipse . collections . impl . Counter counter = new org . eclipse . collections . impl . Counter ( ) ; this . unmodifiableList . forEach ( 1 , 2 , ( band ) -> counter . increment ( ) ) ; "<AssertPlaceHolder>" ; } getCount ( ) { return this . count ; }
org . junit . Assert . assertEquals ( 2 , counter . getCount ( ) )
testBuildWithIterableFields ( ) { java . lang . String expectedAwql = "SELECT<sp>CampaignId,<sp>CampaignName<sp>FROM<sp>AUDIENCE_PERFORMANCE_REPORT" ; com . google . api . ads . adwords . lib . utils . ReportQueryInterface reportQuery = new com . google . api . ads . adwords . lib . utils . v201809 . ReportQuery . Buil...
org . junit . Assert . assertEquals ( expectedAwql , reportQuery . toString ( ) )
testEmptySubqueryWithLimitPushDown ( ) { org . apache . druid . query . groupby . GroupByQuery subquery = org . apache . druid . query . groupby . GroupByQuery . builder ( ) . setDataSource ( QueryRunnerTestHelper . dataSource ) . setQuerySegmentSpec ( QueryRunnerTestHelper . emptyInterval ) . setDimensions ( new org ....
org . junit . Assert . assertFalse ( results . iterator ( ) . hasNext ( ) )
deveRetornarNuloAoPassarCodigoInvalido ( ) { "<AssertPlaceHolder>" ; } valueOfCodigo ( java . lang . String ) { for ( final com . fincatto . documentofiscal . nfe310 . classes . NFModalidadeFrete modalidadeFrete : com . fincatto . documentofiscal . nfe310 . classes . NFModalidadeFrete . values ( ) ) { if ( modalidadeFr...
org . junit . Assert . assertNull ( com . fincatto . documentofiscal . nfe310 . classes . NFModalidadeFrete . valueOfCodigo ( "" ) )
testLongAsInteger ( ) { "<AssertPlaceHolder>" ; } typeVal ( java . lang . Object ) { if ( ( o instanceof java . lang . Long ) || ( o instanceof java . lang . Integer ) ) { return com . lightboxtechnologies . spectrum . FsEntryHBaseCommon . LONG ; } else if ( o instanceof java . lang . String ) { return com . lightboxte...
org . junit . Assert . assertEquals ( com . lightboxtechnologies . spectrum . LONG , typeVal ( java . lang . Integer . valueOf ( 7 ) ) )
fileNotFound ( ) { javax . servlet . ServletContext servletContext = createMock ( javax . servlet . ServletContext . class ) ; expectGetResource ( servletContext , "src/test/resources" ) ; replay ( servletContext ) ; com . github . jknack . handlebars . io . TemplateSource source = new com . github . jknack . handlebar...
org . junit . Assert . assertNotNull ( source )
testGetInputDevice ( ) { javax . sound . midi . MidiDevice device = configuration . getInputDevice ( ) ; "<AssertPlaceHolder>" ; } getInputDevice ( ) { return inputDevice ; }
org . junit . Assert . assertEquals ( inputDevice , device )
afterInvocationAuthorizerCheckWithAllowedResult ( ) { org . apache . deltaspike . test . security . impl . authorization . securityparameterbinding . SecuredBean1 testBean = org . apache . deltaspike . core . api . provider . BeanProvider . getContextualReference ( org . apache . deltaspike . test . security . impl . a...
org . junit . Assert . assertTrue ( testBean . getResult ( true ) . isValue ( ) )
doesNotExecutesHttpRequestIfDelegateIsNull ( ) { doThrow ( com . ge . digitaltwin . tutorial . workflow . activiti . RuntimeException . class ) . when ( restTemplate ) . exchange ( any ( java . lang . String . class ) , any ( org . springframework . http . HttpMethod . class ) , any ( org . springframework . http . Htt...
org . junit . Assert . assertTrue ( true )
testGetRootProcessDefinitionNoParent ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( nl . bzk . migratiebrp . isc . jbpm . common . jsf . JbpmJsfUtil . class ) ; org . mockito . Mockito . when ( nl . bzk . migratiebrp . isc . jbpm . common . jsf . JbpmJsfUtil . getTaskInstance ( ) ) . thenReturn ( t...
org . junit . Assert . assertEquals ( processDefinition , subject . getRootProcessDefinition ( ) )
testBuildWithParameters ( ) { org . lnu . is . domain . publicactivity . PublicActivity publicActivity = new org . lnu . is . domain . publicactivity . PublicActivity ( ) ; org . lnu . is . domain . enrolment . subject . EnrolmentSubject enrolmentSubject = new org . lnu . is . domain . enrolment . subject . EnrolmentSu...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testSensibleDefaultsAllowsConstruction ( ) { com . picocontainer . modules . PicoModuleSystem moduleSystem = new com . picocontainer . modules . ModuleBuilder ( ) . withAutoDeployFolder ( new java . io . File ( java . lang . System . getProperty ( "java.io.tmpdir" ) ) ) . build ( ) ; "<AssertPlaceHolder>" ; } build ( )...
org . junit . Assert . assertNotNull ( moduleSystem )