input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
longHash_3Test ( ) { long hash = greycat . utility . HashHelper . longHash ( CoreConstants . END_OF_TIME , CoreConstants . END_OF_TIME ) ; "<AssertPlaceHolder>" ; } longHash ( long , long ) { long hash = number % max ; return hash < 0 ? hash * ( - 1 ) : hash ; }
org . junit . Assert . assertTrue ( ( hash < ( greycat . internal . CoreConstants . END_OF_TIME ) ) )
testProcessItNotEmpty ( ) { when ( mockIt . next ( ) ) . thenReturn ( mockMessageAndMetadata ) ; when ( mockIt . hasNext ( ) ) . thenReturn ( true ) ; org . apache . flume . PollableSource . Status status = mockKafkaSource . process ( ) ; verify ( mockIt , times ( 1 ) ) . hasNext ( ) ; verify ( mockIt , times ( 1 ) ) ....
org . junit . Assert . assertEquals ( Status . READY , status )
testDeleteDirectoryConcurrently ( ) { final java . io . File parent = tmp . newFolder ( ) ; org . apache . flink . util . FileUtilsTest . generateRandomDirs ( parent , 20 , 5 , 3 ) ; org . apache . flink . core . testutils . CheckedThread t1 = new org . apache . flink . util . FileUtilsTest . Deleter ( parent ) ; org ....
org . junit . Assert . assertFalse ( parent . exists ( ) )
lookBehindWithEmoji ( ) { org . antlr . v4 . runtime . CodePointCharStream s = org . antlr . v4 . runtime . CharStreams . fromString ( new java . lang . StringBuilder ( "01234" ) . appendCodePoint ( 128290 ) . append ( "6789" ) . toString ( ) ) ; s . seek ( 6 ) ; "<AssertPlaceHolder>" ; } LA ( int ) { return LT ( i ) ....
org . junit . Assert . assertEquals ( 128290 , s . LA ( ( - 1 ) ) )
testMessageProducersAreAllTheSame ( ) { org . apache . activemq . jms . pool . PooledConnection connection = ( ( org . apache . activemq . jms . pool . PooledConnection ) ( pooledFactory . createConnection ( ) ) ) ; javax . jms . Session session = connection . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; java...
org . junit . Assert . assertSame ( producer1 . getMessageProducer ( ) , producer2 . getMessageProducer ( ) )
testOFPFlowActionGroupAction ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionGroupAction target = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionGroupAction ( ) ; "<AssertPlaceHolder>" ; } getGroupId ( ) { return groupId ; }
org . junit . Assert . assertNull ( target . getGroupId ( ) )
testAssociatePolicyGroupToDomain_errorInAdd_assertException ( ) { boolean exceptionOccured = false ; final javax . persistence . EntityManager mgr = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( mgr ) . persist ( ( ( org ....
org . junit . Assert . assertTrue ( exceptionOccured )
manageModificationVDiskDeletion_VSDISK_DETACHING_VDisksDetached ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_DETACHING ; org . oscm . app . iaas . data . FlowState newState = null ; paramHandler . getIaasContext ( ) . setVSystemStatus ( "NORMAL" ) ; do...
org . junit . Assert . assertEquals ( FlowState . VSDISK_DETACHED , newState )
to_A$Integer ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > oneToThree = com . m3 . scalaflavor4j . SInt . apply ( 1 ) . to ( 3 ) ; "<AssertPlaceHolder>" ; } size ( ) { return 0 ; }
org . junit . Assert . assertThat ( oneToThree . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 3 ) ) )
testNoMatch05 ( ) { boolean matchResult = namespacePatternMatcher . matchesEndToEnd ( "a<sp>b.c" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; }
org . junit . Assert . assertFalse ( matchResult )
typedObjectFromUUIDAndUUID ( ) { com . pardot . rhombus . cobject . CField field = new com . pardot . rhombus . cobject . CField ( "test" , "uuid" ) ; com . pardot . rhombus . UUID jsonValue = com . pardot . rhombus . UUID . randomUUID ( ) ; java . lang . Object result = com . pardot . rhombus . util . JsonUtil . typed...
org . junit . Assert . assertEquals ( jsonValue , result )
testValueChangeEventPropagationWithReadThrough ( ) { com . vaadin . v7 . data . util . ObjectProperty < java . lang . String > property = new com . vaadin . v7 . data . util . ObjectProperty < java . lang . String > ( "" ) ; getField ( ) . setPropertyDataSource ( property ) ; getField ( ) . setBuffered ( false ) ; getL...
org . junit . Assert . assertEquals ( "Foo" , value )
testOnFlowDeletePre ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) )
selfReferencingIdentityThroughChaining ( ) { org . opendaylight . yangtools . yang . model . api . SchemaContext result = org . opendaylight . yangtools . yang . parser . rfc7950 . reactor . RFC7950Reactors . defaultReactor ( ) . newBuild ( ) . addSource ( org . opendaylight . yangtools . yang . stmt . IdentityStmtTest...
org . junit . Assert . assertNotNull ( result )
testSetGetBlueprintName ( ) { org . apache . ambari . server . orm . entities . BlueprintConfigEntity entity = new org . apache . ambari . server . orm . entities . BlueprintConfigEntity ( ) ; entity . setBlueprintName ( "foo" ) ; "<AssertPlaceHolder>" ; } getBlueprintName ( ) { return blueprintName ; }
org . junit . Assert . assertEquals ( "foo" , entity . getBlueprintName ( ) )
testSingleThreadAccess_Require ( ) { org . junit . Assume . assumeFalse ( com . eclipsesource . v8 . NodeJSTest . skipMessage , com . eclipsesource . v8 . NodeJSTest . skipTest ( ) ) ; final boolean [ ] result = new boolean [ ] { false } ; java . lang . Thread t = new java . lang . Thread ( new java . lang . Runnable (...
org . junit . Assert . assertTrue ( result [ 0 ] )
newRequestBuilder ( ) { org . elasticsearch . client . ClusterAdminClient client = org . mockito . Mockito . mock ( org . elasticsearch . client . ClusterAdminClient . class ) ; org . jboss . elasticsearch . river . remote . mgm . incrementalupdate . IncrementalUpdateRequestBuilder rb = IncrementalUpdateAction . INSTAN...
org . junit . Assert . assertNotNull ( rb )
string2byte ( ) { java . lang . String test = java . lang . Long . toString ( java . lang . System . currentTimeMillis ( ) ) ; byte [ ] b = org . loklak . tools . UTF8 . getBytes ( test ) ; java . lang . String t = org . loklak . tools . UTF8 . String ( b ) ; "<AssertPlaceHolder>" ; } String ( byte [ ] ) { return bytes...
org . junit . Assert . assertEquals ( test , t )
testFindType06 ( ) { org . dresdenocl . model . IModel model1 ; model1 = org . dresdenocl . modelbus . test . ModelBusTestUtility . getUML2Model ( "resources/models/model01.uml" ) ; org . dresdenocl . essentialocl . types . util . TypeResolver typeResolver ; typeResolver = new org . dresdenocl . essentialocl . types . ...
org . junit . Assert . assertNotNull ( typeResolver )
buildMultiple ( ) { org . sejda . model . output . FileOrDirectoryTaskOutput output = mock ( org . sejda . model . output . FileOrDirectoryTaskOutput . class ) ; victim . output ( output ) ; java . io . File file = folder . newFile ( "my.pdf" ) ; org . sejda . model . input . PdfFileSource source = org . sejda . model ...
org . junit . Assert . assertEquals ( 2 , inputs . size ( ) )
testEmpty ( ) { java . lang . String str = "" ; int result = org . evosuite . instrumentation . testability . StringHelper . StringIsEmpty ( str ) ; "<AssertPlaceHolder>" ; } StringIsEmpty ( java . lang . String ) { int len = value . length ( ) ; if ( len == 0 ) { return BooleanHelper . K ; } else { return - len ; } }
org . junit . Assert . assertTrue ( ( result > 0 ) )
testShellText ( ) { java . lang . String text = "random\nstuff\n" ; org . eclipse . jface . text . IDocument document = createDocument ( text ) ; java . util . List < org . eclipse . cdt . autotools . ui . editors . parser . Token > tokens = tokenize ( document , false ) ; checkNoErrors ( ) ; "<AssertPlaceHolder>" ; ch...
org . junit . Assert . assertEquals ( 4 , tokens . size ( ) )
test2727 ( ) { final java . lang . String tableNameStr = "test2727" ; org . apache . hadoop . hbase . HRegionInfo hri = createBasic3FamilyHRegionInfo ( tableNameStr ) ; org . apache . hadoop . fs . Path basedir = new org . apache . hadoop . fs . Path ( hbaseRootDir , tableNameStr ) ; deleteDir ( basedir ) ; fs . mkdirs...
org . junit . Assert . assertTrue ( ( seqid > ( wal3 . getSequenceNumber ( ) ) ) )
testAddParents ( ) { final N parent1 = org . mockito . Mockito . spy ( getBuilderInstance ( ) . build ( ) ) ; final N parent2 = org . mockito . Mockito . spy ( getBuilderInstance ( ) . build ( ) ) ; final B builder = getBuilderInstance ( ) ; builder . withParent ( parent1 ) . withParent ( parent2 ) ; final N child = bu...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( parent1 , parent2 ) , child . getAllParents ( ) )
testUnknownPattern2 ( ) { result = p . match ( "LABEL(x)<sp>LABEL(y)" , data ) ; "<AssertPlaceHolder>" ; } size ( ) { return chunkedData . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
validOrderWithMaterialAssignment ( ) { java . lang . String code = "order-code<sp>" + ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; org . libreplan . ws . common . api . OrderDTO orderDTO = new org . libreplan . ws . common . api . OrderDTO ( ) ; orderDTO . name = "Order<sp>name<sp>" + ( java . util . UUID ....
org . junit . Assert . assertTrue ( instanceConstraintViolationsList . toString ( ) , ( ( instanceConstraintViolationsList . size ( ) ) == 0 ) )
isEmptyTrueSuccess ( ) { final java . lang . Object deviceIO = newDeviceIO ( ) ; new tests . unit . com . microsoft . azure . sdk . iot . device . NonStrictExpectations ( ) { { mockedTransport . isEmpty ( ) ; result = true ; times = 1 ; } } ; boolean isOpen = tests . unit . com . microsoft . azure . sdk . iot . device ...
org . junit . Assert . assertTrue ( isOpen )
convertToMatchableEntity ( ) { eu . dnetlib . iis . citationmatching . schemas . BasicMetadata basicDocMetadata = eu . dnetlib . iis . citationmatching . schemas . BasicMetadata . newBuilder ( ) . setAuthors ( com . google . common . collect . Lists . newArrayList ( "John<sp>Doe" ) ) . setJournal ( "Some<sp>Journal" ) ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( actualMatchableEntity . data ( ) . toByteArray ( ) , expectedMatchableEntity . data ( ) . toByteArray ( ) ) )
testJSONWebServiceExceptionOnGetIfTLS10 ( ) { java . lang . System . setProperty ( "https.protocols" , "TLSv1.1" ) ; com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl jsonWebServiceClientImpl = _createJsonWebServiceClient ( ) ; java . util . Map < java . lang . String , java . ...
org . junit . Assert . assertTrue ( json , json . contains ( SimulatorConstants . HTTP_PARAMETER_RESPOND_WITH_STATUS ) )
testEquals2 ( ) { org . jfree . data . time . TimeSeries s1 = new org . jfree . data . time . TimeSeries ( "Series" , null , null ) ; org . jfree . data . time . TimeSeries s2 = new org . jfree . data . time . TimeSeries ( "Series" , null , null ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( s1 , s2 )
testIsCacheSchemaIndependentMetaData ( ) { classUnderTest . setCacheSchemaIndependentMetaData ( true ) ; "<AssertPlaceHolder>" ; } isCacheSchemaIndependentMetaData ( ) { return _cacheSchemaIndependentMetaData ; }
org . junit . Assert . assertEquals ( true , classUnderTest . isCacheSchemaIndependentMetaData ( ) )
contains_A$Object_containsNull ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( null , 1 , 2 , null , 3 ) ; java . lang . Integer elem = 2 ; boolean actual = seq . contains ( elem ) ; boolean expected = true ; "<AssertPlaceHolder>" ; } contains ( T ) {...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testNieuwHuwelijkCorrect ( ) { final java . lang . String objectSleutel = "fghrt89yh" ; java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby9910 . voerRegelUit ( null , maakHuwelijkBericht ( null , nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . bericht . requ...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
testListBucketsWithSizeAndPrefix ( ) { com . google . api . gax . paging . Page < com . google . cloud . storage . Bucket > buckets = com . google . cloud . examples . storage . snippets . ITStorageSnippets . storageSnippets . listBucketsWithSizeAndPrefix ( com . google . cloud . examples . storage . snippets . ITStora...
org . junit . Assert . assertTrue ( bucketIterator . next ( ) . getName ( ) . startsWith ( com . google . cloud . examples . storage . snippets . ITStorageSnippets . BUCKET ) )
testRunExtractContextTriplesExtracted ( ) { at . punkt . lodms . impl . ETLPipelineImplTest . MockApplicationEventPublisher eventPublisher = new at . punkt . lodms . impl . ETLPipelineImplTest . MockApplicationEventPublisher ( ) ; at . punkt . lodms . impl . ETLPipelineImpl instance = new at . punkt . lodms . impl . ET...
org . junit . Assert . assertEquals ( 4 , context . getTriplesExtracted ( ) )
testEncryptLimitedCiphertextChannel ( ) { int segmentSize = 512 ; int firstSegmentOffset = 0 ; int keySizeInBytes = 16 ; int tagSizeInBytes = 12 ; byte [ ] ikm = com . google . crypto . tink . TestUtil . hexDecode ( "000102030405060708090a0b0c0d0e0f00112233445566778899aabbccddeeff" ) ; com . google . crypto . tink . su...
org . junit . Assert . assertFalse ( encChannel . isOpen ( ) )
testAlgorithmConfigurationExceptionString ( ) { java . lang . String expectedMessage = "some<sp>message" ; java . lang . String actualMessage ; try { throw new de . metanome . algorithm_integration . AlgorithmConfigurationException ( expectedMessage ) ; } catch ( de . metanome . algorithm_integration . AlgorithmConfigu...
org . junit . Assert . assertEquals ( expectedMessage , actualMessage )
testApplyTwice ( ) { com . google . common . base . Predicate < org . apache . jackrabbit . api . security . user . Authorizable > predicate = getDeclaredMembershipPredicate ( testGroup . getID ( ) ) ; predicate . apply ( testMember ) ; "<AssertPlaceHolder>" ; } apply ( org . apache . jackrabbit . oak . spi . security ...
org . junit . Assert . assertTrue ( predicate . apply ( testMember ) )
testValidatieOK_Huwelijk ( ) { final nl . bzk . brp . bijhouding . bericht . model . RegistratieGeboorteGerelateerdeActieElementTest . RelatieHelper relatieHelper = nl . bzk . brp . bijhouding . bericht . model . RegistratieGeboorteGerelateerdeActieElementTest . RelatieHelper . maakHuwelijkOfGp ( getBericht ( ) , true ...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testGetQueryParameter ( ) { final java . lang . Boolean queryParameter = org . apache . flink . runtime . rest . handler . util . HandlerRequestUtils . getQueryParameter ( new org . apache . flink . runtime . rest . handler . HandlerRequest ( org . apache . flink . runtime . rest . messages . EmptyRequestBody . getInst...
org . junit . Assert . assertThat ( queryParameter , org . hamcrest . Matchers . equalTo ( true ) )
testCreateRestAPIIndexForRelationships ( ) { this . restAPI . createIndex ( org . neo4j . graphdb . Relationship . class , "indexName" , true ) ; org . neo4j . rest . graphdb . index . RestIndexManager index = ( ( org . neo4j . rest . graphdb . index . RestIndexManager ) ( getRestGraphDb ( ) . index ( ) ) ) ; "<AssertP...
org . junit . Assert . assertTrue ( index . existsForRelationships ( "indexName" ) )
testGetLabels ( ) { final elemental2 . dom . Element element1 = mock ( elemental2 . dom . Element . class ) ; final elemental2 . dom . Element element2 = mock ( elemental2 . dom . Element . class ) ; final elemental2 . dom . HTMLElement viewElement = mock ( elemental2 . dom . HTMLElement . class ) ; final elemental2 . ...
org . junit . Assert . assertEquals ( labels , view . getLabels ( ) )
buildPolicyChain_withEmptyPolicies ( ) { io . gravitee . policy . api . PolicyChain chain = io . gravitee . gateway . policy . impl . ResponsePolicyChain . create ( new java . util . ArrayList ( ) , mock ( io . gravitee . gateway . api . ExecutionContext . class ) ) ; "<AssertPlaceHolder>" ; } create ( java . util . Li...
org . junit . Assert . assertNotNull ( chain )
oneHourOldDataIntoDefaultBucketFileOutputTest ( ) { loadOneHourData ( ) ; completeSetup ( new java . lang . Integer [ 0 ] ) ; java . lang . String expectedFileOutput = getOneHourOldDataSimulatedFileOutput ( ) ; java . lang . String generatedOutput = readGeneratedFile ( ) ; "<AssertPlaceHolder>" ; } readGeneratedFile ( ...
org . junit . Assert . assertEquals ( expectedFileOutput , generatedOutput )
test_equals_null ( ) { org . threeten . extra . Months test5 = org . threeten . extra . Months . of ( 5 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == otherAmount ) { return true ; } if ( otherAmount instanceof org . threeten . extra . Seconds ) { org . threeten . extra . Seconds other...
org . junit . Assert . assertEquals ( false , test5 . equals ( null ) )
testRoundtrip2 ( ) { edu . cmu . tetrad . test . BayesIm bayesIm = edu . cmu . tetrad . test . TestBayesXml . sampleBayesIm2 ( ) ; edu . cmu . tetrad . test . Element element = edu . cmu . tetrad . test . BayesXmlRenderer . getElement ( bayesIm ) ; edu . cmu . tetrad . test . BayesXmlParser parser = new edu . cmu . tet...
org . junit . Assert . assertEquals ( bayesIm , bayesIm2 )
checkDynamicClusterSizeJsonResultReturnsFalseOnNull ( ) { oracle . kubernetes . operator . wlsconfig . WlsClusterConfig wlsClusterConfig = new oracle . kubernetes . operator . wlsconfig . WlsClusterConfig ( "someCluster" ) ; "<AssertPlaceHolder>" ; } checkUpdateDynamicClusterSizeJsonResult ( java . lang . String ) { fi...
org . junit . Assert . assertFalse ( wlsClusterConfig . checkUpdateDynamicClusterSizeJsonResult ( null ) )
testMemberProjects ( ) { java . util . List < org . gitlab4j . api . models . Project > projects = org . gitlab4j . api . TestProjectApi . gitLabApi . getProjectApi ( ) . getMemberProjects ( ) ; "<AssertPlaceHolder>" ; } getMemberProjects ( ) { return getMemberProjects ( getDefaultPerPage ( ) ) . all ( ) ; }
org . junit . Assert . assertTrue ( ( projects != null ) )
testRowKeyWithMixedGroups ( ) { measurement . withGroups ( java . util . Arrays . asList ( 200 , "group1" ) ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( 100 ) . put ( org . apache . metron . profiler . hbase . SaltyRowKeyBuilder . getSalt ( measurement . getPeriod ( ) , org . apache . metro...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected , actual ) )
testDecodedURL ( ) { java . lang . String qEncode = java . net . URLEncoder . encode ( "" , "UTF-8" ) ; java . lang . String expectURL = "http://cwhois.cnnic.cn/whois?inputfield=value&entity=domain&value=" + qEncode ; java . lang . String decodedURL = "http://cwhois.cnnic.cn/whois?inputfield=value&entity=domain&value="...
org . junit . Assert . assertEquals ( expectURL , result )
testAccessProperty ( ) { final sk . nociar . jpacloner . annotationpoints . AccessProperty t1 = new sk . nociar . jpacloner . annotationpoints . AccessProperty ( ) ; t1 . setField ( 1 ) ; final sk . nociar . jpacloner . annotationpoints . AccessProperty t2 = sk . nociar . jpacloner . JpaCloner . clone ( t1 , sk . nocia...
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 4 ) ) , t2 . getField ( ) )
testSetState3 ( ) { tunnel . setState ( new com . ctrip . xpipe . redis . proxy . tunnel . TunnelEstablished ( tunnel ) ) ; tunnel . setState ( new com . ctrip . xpipe . redis . proxy . tunnel . TunnelClosed ( tunnel ) ) ; "<AssertPlaceHolder>" ; } getState ( ) { org . junit . Assert . assertEquals ( new com . ctrip . ...
org . junit . Assert . assertEquals ( new com . ctrip . xpipe . redis . proxy . tunnel . TunnelEstablished ( tunnel ) , tunnel . getState ( ) )
happyCase ( ) { final org . apache . isis . core . metamodel . services . appfeat . ApplicationFeatureId applicationFeatureId = org . apache . isis . core . metamodel . services . appfeat . ApplicationFeatureId . newMember ( "com.mycompany.Bar#foo" ) ; "<AssertPlaceHolder>" ; } title ( ) { final org . apache . isis . a...
org . junit . Assert . assertThat ( applicationFeatureId . title ( ) , org . hamcrest . CoreMatchers . is ( "com.mycompany.Bar#foo" ) )
testGetTargetSynsetNull ( ) { net . sf . extjwnl . data . Synset s = new net . sf . extjwnl . data . Synset ( dictionary , POS . NOUN , 1 ) ; net . sf . extjwnl . data . Pointer p = new net . sf . extjwnl . data . Pointer ( s , PointerType . ANTONYM , POS . NOUN , 3 , 0 ) ; "<AssertPlaceHolder>" ; } getTargetSynset ( )...
org . junit . Assert . assertNull ( p . getTargetSynset ( ) )
bodyOfEmptyErrorResponse ( ) { just . niubi . httprequest . HttpRequestTest . handler = new just . niubi . httprequest . RequestHandler ( ) { @ just . niubi . httprequest . Override public void handle ( org . eclipse . jetty . server . Request request , javax . servlet . http . HttpServletResponse response ) { response...
org . junit . Assert . assertEquals ( "" , get ( just . niubi . httprequest . HttpRequestTest . url ) . body ( ) )
testEntitySerializationWithKey ( ) { com . jmethods . catatumbo . entities . ParentEntity entity = new com . jmethods . catatumbo . entities . ParentEntity ( ) ; entity . setField1 ( "Serialization<sp>Test" ) ; entity = com . jmethods . catatumbo . EntityManagerTest . em . insert ( entity ) ; java . io . ObjectOutputSt...
org . junit . Assert . assertEquals ( entity , entity2 )
testVerifyWithInvalidKeyChooserFails ( ) { java . lang . String signature = signer . sign ( com . springcryptoutils . core . signature . Base64EncodedSignerAndVerifierWithChoosersByAliasImplTest . keyStoreChooser , com . springcryptoutils . core . signature . Base64EncodedSignerAndVerifierWithChoosersByAliasImplTest . ...
org . junit . Assert . assertNotNull ( signature )
testDuplicateBindingNameInDifferentScope ( ) { final java . lang . String drl1 = ( ( ( ( ( ( ( "package<sp>org.drools.compiler\n" + "import<sp>" ) + ( org . drools . modelcompiler . domain . Person . class . getCanonicalName ( ) ) ) + ";\n" ) + "rule<sp>R<sp>when\n" ) + "<sp>exists(<sp>$fact<sp>:<sp>String(<sp>length<s...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
testSameHtmlEqualSourceId ( ) { au . gov . ga . worldwind . common . layers . screenoverlay . MutableScreenOverlayAttributesImpl c1 = new au . gov . ga . worldwind . common . layers . screenoverlay . MutableScreenOverlayAttributesImpl ( "<html><body>Some<sp>content</body></html>" ) ; au . gov . ga . worldwind . common ...
org . junit . Assert . assertTrue ( c1 . getSourceId ( ) . equalsIgnoreCase ( c2 . getSourceId ( ) ) )
friendlyNameMaximum ( ) { org . opennms . netmgt . bsm . persistence . api . functions . map . IdentityEntity identityEntity = new org . opennms . netmgt . bsm . persistence . api . functions . map . IdentityEntity ( ) ; org . opennms . netmgt . bsm . persistence . api . IPServiceEdgeEntity edge = new org . opennms . n...
org . junit . Assert . assertEquals ( 0 , constraintViolations . size ( ) )
modifies_an_existing_nested_rekord_instead_of_wiping_it_out ( ) { com . noodlesandwich . rekord . Rekord < com . noodlesandwich . rekord . keys . Person > remi = Person . rekord . with ( Person . firstName , "Remi" ) . with ( Person . address , Address . rekord . with ( Address . houseNumber , 5 ) . with ( Address . st...
org . junit . Assert . assertThat ( remi . get ( Person . address ) , org . hamcrest . Matchers . is ( Address . rekord . with ( Address . houseNumber , 5 ) . with ( Address . street , "boulevard<sp>Descartes" ) . with ( Address . city , "Paris" ) ) )
testSqlite3Scenario2 ( ) { org . qcri . rheem . tests . Collection < org . qcri . rheem . basic . data . Record > collector = new org . qcri . rheem . tests . ArrayList ( ) ; final org . qcri . rheem . core . plan . rheemplan . RheemPlan rheemPlan = org . qcri . rheem . tests . RheemPlans . sqlite3Scenario2 ( collector...
org . junit . Assert . assertEquals ( expected , collector )
failedToSendFailureResponseToClient ( ) { org . mule . runtime . api . util . Reference < java . lang . Throwable > exceptionReference = new org . mule . runtime . api . util . Reference ( ) ; when ( messagingException . getEvent ( ) ) . thenReturn ( event ) ; when ( completionHandler . onFailure ( messagingException ,...
org . junit . Assert . assertThat ( exceptionReference . get ( ) , org . hamcrest . CoreMatchers . equalTo ( runtimeException ) )
testGetAstParameterizedTypesWithoutEmptySpace ( ) { java . util . Map < java . lang . String , java . lang . String > javaTypes = createJavaTypes ( ) ; when ( dataTypeUtils . getJavaTypes ( ) ) . thenReturn ( javaTypes ) ; java . lang . String typeName = "de.test.Attribute<String,Integer,Boolean>" ; org . eclipse . jdt...
org . junit . Assert . assertEquals ( "de.test.Attribute<String,Integer,Boolean>" , tp . toString ( ) )
shouldSuccessfullyAddOneRecordForAnEvent ( ) { usage1 . setId ( null ) ; usageRefactorService . createUsageEvent ( usage1 ) ; java . util . Map < java . lang . Integer , java . util . Map < java . lang . Integer , java . util . List < org . openstack . atlas . service . domain . usage . entities . LoadBalancerHostUsage...
org . junit . Assert . assertTrue ( ( ( map . size ( ) ) == 1 ) )
areEqual ( ) { com . clouway . oauth2 . authorization . Authorization authorization1 = new com . clouway . oauth2 . authorization . Authorization ( "code" , "id" , "identityId" , "123456" , java . util . Collections . singleton ( "scope1" ) , java . util . Collections . singleton ( "redirectURI" ) , java . util . Colle...
org . junit . Assert . assertThat ( authorization1 , org . hamcrest . Matchers . is ( authorization2 ) )
stackoverflow3 ( ) { int sum = com . github . underscore . lodash . U . sum ( com . github . underscore . lodash . Arrays . asList ( 1 , 2 , 3 , 4 ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 10 , sum )
testEasyrecDataModel_getBooleanPreferenceValue ( ) { org . apache . mahout . cf . taste . model . DataModel easyrecDataModel = new org . easyrec . mahout . model . EasyrecDataModel ( org . easyrec . mahout . EasyrecInMemoryDataModelTest . TENANT_ID , org . easyrec . mahout . EasyrecInMemoryDataModelTest . BUY_ACTION_TY...
org . junit . Assert . assertEquals ( new java . lang . Float ( 1 ) , preferenceValue )
sync_consult_from_file ( ) { final java . lang . String rulebase = "rules/reloaded/kk_rules001_simple.prova" ; comm = new ws . prova . api2 . ProvaCommunicatorImpl ( test . ws . prova . test2 . ProvaCommunicatorTest . kAgent , test . ws . prova . test2 . ProvaCommunicatorTest . kPort , rulebase , ws . prova . api2 . Pr...
org . junit . Assert . assertEquals ( numSolutions [ ( i ++ ) ] , resultSet . length )
lineEncodeTest ( ) { int pairs = 100 ; int maxLen = 80 ; java . util . Random rand = new java . util . Random ( ) ; java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap ( ) ; for ( int i = 0 ; i < pairs ; i ++ ) { java . lang . String key = java . lang . Integer . toString (...
org . junit . Assert . assertEquals ( value , pair . getValue ( ) )
testRemoveMultipleVariantConditionals ( ) { java . lang . String input = "if(<sp>rwt.util.Variant.isSet(<sp>\"qx.debug\",<sp>\"on\"<sp>)<sp>)<sp>{\n}\n" ; org . eclipse . rap . clientbuilder . TokenList tokens = org . eclipse . rap . clientbuilder . TestUtil . parse ( input ) ; org . eclipse . rap . clientbuilder . QxC...
org . junit . Assert . assertEquals ( 0 , tokens . size ( ) )
testToggleSortNoSort ( ) { java . lang . String sql = "select<sp>*<sp>from<sp>" + ( tableId ) ; java . lang . String expected = ( "SELECT<sp>*<sp>FROM<sp>" + ( tableId ) ) + "<sp>ORDER<sp>BY<sp>\"foo\"<sp>ASC" ; java . lang . String results = org . sagebionetworks . table . query . util . TableSqlProcessor . toggleSort...
org . junit . Assert . assertEquals ( expected , results )
testEncodeUnit2Bytes ( ) { java . io . ByteArrayOutputStream byteArrayOutputStream = new java . io . ByteArrayOutputStream ( ) ; try ( com . liferay . portal . kernel . io . Base64OutputStream base64OutputStream = new com . liferay . portal . kernel . io . Base64OutputStream ( byteArrayOutputStream ) ) { base64OutputSt...
org . junit . Assert . assertEquals ( 4 , byteArrayInputStream . read ( new byte [ 4 ] ) )
testTreePermissionCanRead ( ) { java . util . Map < java . lang . String , java . lang . Boolean > readMap = com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . Boolean > builder ( ) . put ( org . apache . jackrabbit . oak . security . authorization . composite . ROOT_PATH , false ) ...
org . junit . Assert . assertEquals ( nodePath , expectedResult , tp . canRead ( ) )
testRun ( ) { com . streamsets . datacollector . util . TestUtil . captureMockStages ( ) ; com . streamsets . datacollector . execution . runner . common . ProductionPipeline pipeline = createProductionPipeline ( DeliveryGuarantee . AT_MOST_ONCE , true ) ; pipeline . registerStatusListener ( new com . streamsets . data...
org . junit . Assert . assertTrue ( pipeline . getCommittedOffsets ( ) . isEmpty ( ) )
whenCreateSpy_thenCreate ( ) { final java . util . List < java . lang . String > spyList = org . mockito . Mockito . spy ( new java . util . ArrayList < java . lang . String > ( ) ) ; spyList . add ( "one" ) ; org . mockito . Mockito . verify ( spyList ) . add ( "one" ) ; "<AssertPlaceHolder>" ; } size ( ) { return ele...
org . junit . Assert . assertEquals ( 1 , spyList . size ( ) )
testOnlyIdNoResult ( ) { try { yawp ( io . yawp . repository . models . basic . BasicObject . class ) . where ( "stringValue" , "=" , "xpto" ) . onlyId ( ) ; } catch ( io . yawp . repository . query . NoResultException ex ) { return ; } "<AssertPlaceHolder>" ; } onlyId ( ) { io . yawp . repository . query . List < io ....
org . junit . Assert . assertTrue ( false )
testGetResultFeatureCount_withPostProcessor ( ) { final org . esa . beam . binning . VariableContext variableContext = createVariableContext ( ) ; final org . esa . beam . binning . cellprocessor . FeatureSelection . Config ppSelection = new org . esa . beam . binning . cellprocessor . FeatureSelection . Config ( "f_ma...
org . junit . Assert . assertEquals ( 1 , featureCount )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . PortletItem . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . l...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
shouldReadJsonResponse ( ) { final org . talend . dataprep . command . DefaultsTest . Response response = new org . talend . dataprep . command . DefaultsTest . Response ( ) ; response . value = "My<sp>Value" ; final com . fasterxml . jackson . databind . ObjectMapper mapper = new com . fasterxml . jackson . databind ....
org . junit . Assert . assertEquals ( "My<sp>Value" , value . value )
isNewReceiptRequiredTestDocType ( ) { final de . metas . inoutcandidate . model . I_M_ReceiptSchedule previousReceiptSchedule = createReceiptSchedule ( bpartner1 , warehouse1 , date , product1_wh1 , 10 ) ; final de . metas . inoutcandidate . model . I_M_ReceiptSchedule receiptSchedule = createReceiptSchedule ( bpartner...
org . junit . Assert . assertTrue ( isNewRequired )
shouldReturnPositiveWhenComparedToNonNullMetadataVersion ( ) { com . github . zafarkhaja . semver . MetadataVersion v1 = MetadataVersion . NULL ; com . github . zafarkhaja . semver . MetadataVersion v2 = new com . github . zafarkhaja . semver . MetadataVersion ( new java . lang . String [ ] { } ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertTrue ( ( 0 < ( v1 . compareTo ( v2 ) ) ) )
shouldNotDeserialize ( ) { doThrow ( new java . io . IOException ( ) ) . when ( reader ) . readValue ( anyString ( ) ) ; final com . github . jloisel . reactive . entity . api . ReactiveEntity single = deserializer . call ( serializedEntity ) ; "<AssertPlaceHolder>" ; } call ( T extends com . github . jloisel . reactiv...
org . junit . Assert . assertSame ( single , entity )
testIncorrectFormBean ( ) { org . jboss . seam . rest . test . validation . FormBean form1 = new org . jboss . seam . rest . test . validation . FormBean ( null , "a" ) ; org . jboss . seam . rest . test . validation . FormBean form2 = new org . jboss . seam . rest . test . validation . FormBean ( null , "bb" ) ; try {...
org . junit . Assert . assertEquals ( 3 , e . getViolations ( ) . size ( ) )
testCol2Im ( ) { int kh = 1 ; int kw = 1 ; int sy = 1 ; int sx = 1 ; int ph = 1 ; int pw = 1 ; org . nd4j . linalg . api . ndarray . INDArray linspaced = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 64 , 64 , org . nd4j . linalg . factory . Nd4j . defaultFloatingPointType ( ) ) . reshape ( 2 , 2 , 2 , 2 , 2 , ...
org . junit . Assert . assertEquals ( assertion , newTest )
testHttpGet ( ) { eu . europa . esig . dss . client . http . NativeHTTPDataLoader dataLoader = new eu . europa . esig . dss . client . http . NativeHTTPDataLoader ( ) ; byte [ ] bytesArray = dataLoader . get ( eu . europa . esig . dss . client . http . NativeHTTPDataLoaderTest . HTTP_URL_TO_LOAD ) ; eu . europa . esig ...
org . junit . Assert . assertNotNull ( certificate )
testDdl_TYPE_CHAR_10 ( ) { java . lang . String ddl = ( "CREATE<sp>FOREIGN<sp>TABLE<sp>ONE_TYPE<sp>(" + ( org . teiid . designer . vdb . dynamic . TestModelToDdlGenerator . BQT2_TYPE_DDL . TYPE_CHAR_10 ) ) + ")<sp>OPTIONS(UPDATABLE<sp>'TRUE');" ; java . lang . String expectedDdl = ( "CREATE<sp>FOREIGN<sp>TABLE<sp>ONE_T...
org . junit . Assert . assertEquals ( expectedDdl , generatedDdl )
shouldSpecifyMainClassName ( ) { final java . lang . String EXPECTED_MAIN_CLASS_NAME = "org.neo4j.release.it.std.exec.HelloWorldApp" ; org . neo4j . release . it . std . exec . ObservablePlatform platform = buildPlatform ( forMainClass ( named ( EXPECTED_MAIN_CLASS_NAME ) ) ) ; "<AssertPlaceHolder>" ; } getMainClassNam...
org . junit . Assert . assertThat ( platform . getMainClassName ( ) , is ( EXPECTED_MAIN_CLASS_NAME ) )
testHasProductWithPresentProduct ( ) { org . candlepin . dto . api . v1 . ActivationKeyDTO dto = new org . candlepin . dto . api . v1 . ActivationKeyDTO ( ) ; java . util . Set < java . lang . String > products = new java . util . HashSet ( ) ; products . add ( "test-id-prod-2" ) ; dto . setProductIds ( products ) ; "<...
org . junit . Assert . assertTrue ( dto . hasProductId ( "test-id-prod-2" ) )
testPaseNegativeInfinity ( ) { java . lang . String source = "(-Infinity)<sp>-<sp>(Infinity)i" ; org . hipparchus . complex . Complex expected = new org . hipparchus . complex . Complex ( Double . NEGATIVE_INFINITY , Double . NEGATIVE_INFINITY ) ; org . hipparchus . complex . Complex actual = complexFormat . parse ( so...
org . junit . Assert . assertEquals ( expected , actual )
testStaticLogRegel ( ) { nl . bzk . migratiebrp . conversie . regels . proces . logging . Logging . initContext ( ) ; nl . bzk . migratiebrp . conversie . regels . proces . logging . Logging . log ( new nl . bzk . migratiebrp . conversie . model . logging . LogRegel ( new nl . bzk . migratiebrp . conversie . model . lo...
org . junit . Assert . assertTrue ( ( ( logging . getRegels ( ) . size ( ) ) == 1 ) )
isSpringFlexHibernate3SupportAvailable ( ) { "<AssertPlaceHolder>" ; } isSpringFlexHibernate3SupportAvailable ( ) { org . junit . Assert . assertFalse ( org . springframework . flex . config . RuntimeEnvironment . isSpringFlexHibernate3SupportAvailable ( ) ) ; }
org . junit . Assert . assertTrue ( org . springframework . flex . config . RuntimeEnvironment . isSpringFlexHibernate3SupportAvailable ( ) )
testHashCodesM3_32_ints ( ) { int seed = 123 ; java . util . Random rand = new java . util . Random ( seed ) ; com . google . common . hash . HashFunction hf = com . google . common . hash . Hashing . murmur3_32 ( seed ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { int val = rand . nextInt ( ) ; byte [ ] data = java . nio ....
org . junit . Assert . assertEquals ( hc1 , hc2 )
testNullPropertyName ( ) { when ( bindings . get ( "location" ) ) . thenReturn ( null ) ; when ( bindings . get ( "name" ) ) . thenReturn ( null ) ; multiFieldPanelWCMUse . init ( bindings ) ; java . util . List < java . util . Map < java . lang . String , java . lang . String > > actual = multiFieldPanelWCMUse . getVa...
org . junit . Assert . assertEquals ( 0 , actual . size ( ) )
isSingleton ( ) { "<AssertPlaceHolder>" ; } isSingleton ( ) { org . junit . Assert . assertTrue ( new org . springframework . data . gemfire . CacheFactoryBean ( ) . isSingleton ( ) ) ; }
org . junit . Assert . assertTrue ( new org . springframework . data . gemfire . CacheFactoryBean ( ) . isSingleton ( ) )
simpleQueryWithoutBindingSetInvalidProperty ( ) { org . apache . rya . api . domain . StatementMetadata metadata = new org . apache . rya . api . domain . StatementMetadata ( ) ; metadata . addMetadata ( new org . apache . rya . api . domain . RyaIRI ( "http://createdBy" ) , new org . apache . rya . api . domain . RyaT...
org . junit . Assert . assertEquals ( 0 , bsList . size ( ) )
testGetStorageUnitNotificationRegistration ( ) { org . finra . herd . model . api . xml . NotificationRegistrationKey storageUnitNotificationRegistrationKey = new org . finra . herd . model . api . xml . NotificationRegistrationKey ( NAMESPACE , NOTIFICATION_NAME ) ; org . finra . herd . model . api . xml . StorageUnit...
org . junit . Assert . assertEquals ( storageUnitNotificationRegistration , resultStorageUnitNotificationRegistration )
getRecordForAdUnit_withNullAdUnitId_shouldReturnNull ( ) { subject . registerRateLimit ( com . mopub . network . RequestRateTrackerTest . AD_UNIT_1 , com . mopub . network . RequestRateTrackerTest . BACKOFF_TIME , com . mopub . network . RequestRateTrackerTest . REASON ) ; "<AssertPlaceHolder>" ; } getRecordForAdUnit (...
org . junit . Assert . assertNull ( subject . getRecordForAdUnit ( null ) )
findOrCreateEvent_New ( ) { cruise . umple . compiler . StateMachine sm = new cruise . umple . compiler . StateMachine ( "sm" ) ; sm . setUmpleClass ( umpleClass ) ; cruise . umple . compiler . Event e1 = umpleClass . findOrCreateEvent ( "e1" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return m_Instances . relationName...
org . junit . Assert . assertEquals ( "e1" , e1 . getName ( ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . expando . kernel . model . ExpandoRow . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . l...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )