input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
diagnosticsStatusNotificationVerifyResponse ( ) { io . motown . ocpp . v12 . soap . centralsystem . DiagnosticsStatusNotificationRequest request = new io . motown . ocpp . v12 . soap . centralsystem . DiagnosticsStatusNotificationRequest ( ) ; io . motown . ocpp . v12 . soap . centralsystem . DiagnosticsStatusNotificat...
org . junit . Assert . assertNotNull ( response )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDS . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . w...
org . junit . Assert . assertEquals ( "SampleLdapIDSRealm" , com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDS . servlet . getRealm ( ) )
keySet_ToArray_withLargeTarget ( ) { org . eclipse . collections . impl . map . sorted . immutable . ImmutableTreeMap < java . lang . Integer , java . lang . String > immutableSortedMap = new org . eclipse . collections . impl . map . sorted . immutable . ImmutableTreeMap ( SortedMaps . mutable . of ( 1 , "1" , 2 , "2"...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 1 , 2 , 3 , 4 , 42 , null } , result )
testEulerNumber_singleSquareC8 ( ) { ij . process . ImageProcessor image = new ij . process . ByteProcessor ( 8 , 8 ) ; for ( int i = 2 ; i < 6 ; i ++ ) { for ( int j = 2 ; j < 6 ; j ++ ) { image . set ( i , j , 255 ) ; } } int euler = inra . ijpb . measure . IntrinsicVolumes2D . eulerNumber ( image , 8 ) ; "<AssertPla...
org . junit . Assert . assertEquals ( 1 , euler )
shouldBuildCreateQueryStatement ( ) { java . lang . String expected = "CREATE<sp>TABLE<sp>`myTable`<sp>(\n" + ( ( ( ( ( ( ( ( "`c1`<sp>INT<sp>NOT<sp>NULL,\n" + "`c2`<sp>BIGINT<sp>NOT<sp>NULL,\n" ) + "`c3`<sp>VARCHAR(256)<sp>NOT<sp>NULL,\n" ) + "`c4`<sp>VARCHAR(256)<sp>NULL,\n" ) + "`c5`<sp>DATE<sp>DEFAULT<sp>\'2001-03-...
org . junit . Assert . assertEquals ( expected , sql )
replace_2arg_NullValue ( ) { try { "<AssertPlaceHolder>" ; org . junit . Assert . fail ( "should<sp>have<sp>thrown<sp>an<sp>exception<sp>-<sp>null<sp>value<sp>not<sp>allowed" ) ; } catch ( java . lang . NullPointerException e ) { } }
org . junit . Assert . assertFalse ( cache . replace ( 1L , null ) )
testConstructor ( ) { org . openscience . cdk . qsar . DescriptorEngine engine = new org . openscience . cdk . qsar . DescriptorEngine ( org . openscience . cdk . qsar . IMolecularDescriptor . class , org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; "<AssertPlaceHolder>" ; } getInstance ( ) { or...
org . junit . Assert . assertNotNull ( engine )
datasetShouldNotBeDeaccessionedWithNoVersions ( ) { java . util . List < edu . harvard . iq . dataverse . DatasetVersion > versionList = new java . util . ArrayList < edu . harvard . iq . dataverse . DatasetVersion > ( ) ; edu . harvard . iq . dataverse . Dataset dataset = new edu . harvard . iq . dataverse . Dataset (...
org . junit . Assert . assertFalse ( dataset . isDeaccessioned ( ) )
testIsValidSecurityZoneForDeleteWithWrongNameReturnFalse ( ) { org . apache . ranger . plugin . model . RangerSecurityZone suppliedSecurityZone = getRangerSecurityZone ( ) ; org . mockito . Mockito . when ( _store . getSecurityZone ( suppliedSecurityZone . getName ( ) ) ) . thenReturn ( null ) ; java . util . List < or...
org . junit . Assert . assertFalse ( isValid )
testTimeExpressionWithoutTime ( ) { java . util . Date dt = new java . util . Date ( ) ; java . util . Date dueDate = testExpression ( new java . text . SimpleDateFormat ( "yyyy-MM-dd" ) . format ( new java . util . Date ( ) ) ) ; "<AssertPlaceHolder>" ; } format ( java . util . logging . LogRecord ) { java . lang . St...
org . junit . Assert . assertEquals ( new java . text . SimpleDateFormat ( "yyyy-MM-dd" ) . format ( dt ) , new java . text . SimpleDateFormat ( "yyyy-MM-dd" ) . format ( dueDate ) )
testGetByModelNone ( ) { uk . ac . bbsrc . tgac . miso . core . data . InstrumentModel platform = dao . getByAlias ( "Coco<sp>Rocha" ) ; "<AssertPlaceHolder>" ; } getByAlias ( java . lang . String ) { org . hibernate . Criteria criteria = currentSession ( ) . createCriteria ( uk . ac . bbsrc . tgac . miso . core . data...
org . junit . Assert . assertNull ( platform )
findOrCreateFromInnerToOuter ( ) { cruise . umple . compiler . State outsideOn = new cruise . umple . compiler . State ( "OutsideOn" , sm ) ; cruise . umple . compiler . State on = new cruise . umple . compiler . State ( "On" , sm ) ; cruise . umple . compiler . StateMachine innerSm = new cruise . umple . compiler . St...
org . junit . Assert . assertSame ( on , alsoOn )
shouldUseInfinitestClassLoaderForProcessClassPath ( ) { org . infinitest . util . LoggingAdapter listener = new org . infinitest . util . LoggingAdapter ( ) ; addLoggingListener ( listener ) ; org . infinitest . environment . RuntimeEnvironment environment = new org . infinitest . environment . RuntimeEnvironment ( org...
org . junit . Assert . assertThat ( env )
testPercent ( ) { org . apache . abdera . i18n . iri . IRI iri1 = new org . apache . abdera . i18n . iri . IRI ( "http://example.org/%7e%2Fuser?%2f" ) ; org . apache . abdera . i18n . iri . IRI iri2 = new org . apache . abdera . i18n . iri . IRI ( "http://example.org/%7E%2fuser?/" ) ; "<AssertPlaceHolder>" ; } normaliz...
org . junit . Assert . assertTrue ( iri1 . normalize ( ) . equals ( iri2 . normalize ( ) ) )
generateWithDefault ( ) { org . sonatype . nexus . internal . wonderland . AuthTicketGenerator generator = new org . sonatype . nexus . internal . wonderland . AuthTicketGenerator ( new org . sonatype . nexus . crypto . internal . RandomBytesGeneratorImpl ( new org . sonatype . nexus . crypto . internal . CryptoHelperI...
org . junit . Assert . assertNotNull ( token )
testRemove ( ) { com . liferay . blogs . model . BlogsEntry newBlogsEntry = addBlogsEntry ( ) ; _persistence . remove ( newBlogsEntry ) ; com . liferay . blogs . model . BlogsEntry existingBlogsEntry = _persistence . fetchByPrimaryKey ( newBlogsEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) {...
org . junit . Assert . assertNull ( existingBlogsEntry )
testToObjectArrayNull ( ) { java . lang . Object [ ] objnull = org . yes . cart . utils . impl . ObjectUtil . toObjectArray ( null ) ; "<AssertPlaceHolder>" ; } toObjectArray ( java . lang . Object ) { if ( obj == null ) { return new java . lang . Object [ ] { null } ; } if ( ( ( obj . getClass ( ) . isPrimitive ( ) ) ...
org . junit . Assert . assertNull ( objnull [ 0 ] )
test6 ( ) { "<AssertPlaceHolder>" ; } nextPrime ( int ) { if ( n < 0 ) throw new java . lang . IllegalArgumentException ( ( "Negative<sp>input:<sp>" + n ) ) ; if ( n == 2 ) return 2 ; n = n | 1 ; if ( n == 1 ) { return 2 ; } if ( cc . redberry . rings . primes . SmallPrimes . isPrime ( n ) ) { return n ; } final int re...
org . junit . Assert . assertEquals ( Integer . MAX_VALUE , cc . redberry . rings . primes . SmallPrimes . SmallPrimes . nextPrime ( Integer . MAX_VALUE ) )
scheduleAtFixedRateConcurrentTest ( ) { java . util . concurrent . ScheduledExecutorService scheduler = makeScheduler ( 2 ) ; try { final int periodInMillis = DELAY_TIME ; final int runnableSleepTime = ( DELAY_TIME ) * 2 ; org . threadly . test . concurrent . TestRunnable tr = new org . threadly . test . concurrent . T...
org . junit . Assert . assertFalse ( tr . ranConcurrently ( ) )
testGetCallableRequest ( ) { System . out . println ( "getCallableRequest" ) ; gov . hhs . fha . nhinc . gateway . executorservice . ResponseWrapper instance = new gov . hhs . fha . nhinc . gateway . executorservice . ResponseWrapper ( ) ; java . lang . Object expResult = null ; java . lang . Object result = instance ....
org . junit . Assert . assertEquals ( expResult , result )
collectWithIndex ( ) { org . eclipse . collections . api . stack . StackIterable < java . lang . String > stack = this . newStackFromTopToBottom ( "4" , "3" , "2" , "1" ) ; org . eclipse . collections . api . stack . StackIterable < org . eclipse . collections . api . tuple . primitive . ObjectIntPair < java . lang . S...
org . junit . Assert . assertEquals ( expected , stack . collectWithIndex ( PrimitiveTuples :: pair ) )
shouldFindDependenciesInSamePackage ( ) { org . infinitest . parser . JavaClass javaClass = builder . getClass ( org . infinitest . parser . FakeTree . class . getName ( ) ) ; "<AssertPlaceHolder>" . contains ( org . infinitest . parser . FakeDependency . class . getName ( ) ) ; } getImports ( ) { return org . infinite...
org . junit . Assert . assertThat ( javaClass . getImports ( ) )
testValidate_3 ( ) { java . lang . String line = "append<sp>into<sp>/this" ; net . roboconf . core . commands . AppendCommandInstruction instr = new net . roboconf . core . commands . AppendCommandInstruction ( this . context , line , 1 ) ; java . util . List < net . roboconf . core . model . ParsingError > errors = in...
org . junit . Assert . assertEquals ( 0 , errors . size ( ) )
getRequestsStatistic ( ) { java . util . ArrayList < com . rhcloud . analytics4github . domain . RequestToAPI > requestToAPIs = new java . util . ArrayList ( ) ; requestToAPIs . add ( new com . rhcloud . analytics4github . domain . RequestToAPI ( "testRepository" , "/commits" ) ) ; when ( repository . findAll ( ) ) . t...
org . junit . Assert . assertEquals ( requestsStatistic , requestToAPIs )
testWrite ( ) { com . lrn . nettymysqlprotocol . protocol . impl . ComQueryPacket comQueryPacket = new com . lrn . nettymysqlprotocol . protocol . impl . ComQueryPacket ( ) ; comQueryPacket . setQuery ( "select<sp>@@version_comment<sp>limit<sp>1" ) ; io . netty . buffer . ByteBuf buffer = io . netty . buffer . Unpooled...
org . junit . Assert . assertEquals ( expected . toLowerCase ( ) , hexBuf . toLowerCase ( ) )
testSimple ( ) { java . nio . ByteBuffer bb = java . nio . ByteBuffer . allocate ( 4 ) ; org . mp4parser . boxes . iso14496 . part1 . objectdescriptors . BitWriterBuffer bitWriterBuffer = new org . mp4parser . boxes . iso14496 . part1 . objectdescriptors . BitWriterBuffer ( bb ) ; bitWriterBuffer . writeBits ( 15 , 4 )...
org . junit . Assert . assertEquals ( ( 15 << 4 ) , test )
testGetY ( ) { classUnderTest . setY ( 10 ) ; "<AssertPlaceHolder>" ; } getY ( ) { return y ; }
org . junit . Assert . assertEquals ( 10 , classUnderTest . getY ( ) )
testTwentySwitchTopologySpiazzo ( ) { org . opennms . netmgt . enlinkd . TwentyNodeTopology topology = new org . opennms . netmgt . enlinkd . TwentyNodeTopology ( ) ; org . opennms . netmgt . enlinkd . service . api . BroadcastDomain domain = new org . opennms . netmgt . enlinkd . service . api . BroadcastDomain ( ) ; ...
org . junit . Assert . assertEquals ( 0 , ndbtB . getFailed ( ) . size ( ) )
shouldReturnTrueGivenAnEmptyArray ( ) { boolean isEmpty = org . flips . utils . Utils . isEmpty ( new java . lang . Object [ ] { } ) ; "<AssertPlaceHolder>" ; } isEmpty ( java . lang . Object [ ] ) { return org . springframework . util . ObjectUtils . isEmpty ( array ) ; }
org . junit . Assert . assertEquals ( true , isEmpty )
testMixingOrAndNot ( ) { com . picocontainer . gems . constraints . Constraint c = new com . picocontainer . gems . constraints . Or ( c1 , new com . picocontainer . gems . constraints . Not ( c2 ) , c3 ) ; final org . jmock . Sequence sequence = mockery . sequence ( "contraints" ) ; mockery . checking ( new org . jmoc...
org . junit . Assert . assertTrue ( c . evaluate ( adapter ) )
shouldBindCookieMatchingParameterName ( ) { com . threewks . thundr . introspection . ParameterDescription varParam = new com . threewks . thundr . introspection . ParameterDescription ( "var" , java . lang . String . class ) ; bindings . put ( varParam , null ) ; req . withCookie ( "var" , "expected" ) ; binder . bind...
org . junit . Assert . assertThat ( bindings . get ( varParam ) , is ( ( ( java . lang . Object ) ( "expected" ) ) ) )
testDeleteWebhookConfiguration ( ) { nl . topicus . bitbucket . persistence . WebHookConfiguration [ ] configurations = activeObjects . find ( nl . topicus . bitbucket . persistence . WebHookConfiguration . class ) ; org . junit . Assume . assumeTrue ( ( ( configurations != null ) && ( ( configurations . length ) > 0 )...
org . junit . Assert . assertNull ( activeObjects . get ( nl . topicus . bitbucket . persistence . WebHookConfiguration . class , configuration . getID ( ) ) )
testParse ( ) { java . util . Calendar time = java . util . Calendar . getInstance ( ) ; time . setTime ( new java . util . Date ( 114 , 5 , 17 ) ) ; org . openl . rules . convertor . String2CalendarConvertor converter = new org . openl . rules . convertor . String2CalendarConvertor ( ) ; java . util . Calendar result ...
org . junit . Assert . assertEquals ( time , result )
testABoxAssertionsRemovedWhenPropertyRemoved ( ) { org . apache . jena . ontology . OntModel preModel = org . apache . jena . rdf . model . ModelFactory . createOntologyModel ( OntModelSpec . OWL_MEM ) ; org . apache . jena . ontology . OntModel postModel = org . apache . jena . rdf . model . ModelFactory . createOntol...
org . junit . Assert . assertTrue ( ( ( preModel . size ( ) ) == ( postModel . size ( ) ) ) )
testBasic ( ) { org . apache . accumulo . core . client . summary . SummarizerConfiguration sc = org . apache . accumulo . core . client . summary . SummarizerConfiguration . builder ( org . apache . accumulo . core . client . summary . summarizers . AuthorizationSummarizer . class ) . build ( ) ; org . apache . accumu...
org . junit . Assert . assertEquals ( expected , actual )
c_wmsGetFeatureInfoTest ( ) { org . geosdi . geoplatform . services . request . GPWMSGetFeatureInfoRequest wmsGetFeatureInfoRequest = new org . geosdi . geoplatform . services . request . GPWMSGetFeatureInfoRequest ( ) ; wmsGetFeatureInfoRequest . setCrs ( "EPSG:4326" ) ; wmsGetFeatureInfoRequest . setWidth ( "550" ) ;...
org . junit . Assert . assertTrue ( ( ( response . getStatus ( ) ) == 200 ) )
testGetPidByProcessName_WithImproperData_ReturnsNothing ( ) { java . io . InputStream stubInputStream = org . apache . commons . io . IOUtils . toInputStream ( ( ( "<sp>PID<sp>TTY<sp>STAT<sp>TIME<sp>COMMAND\n<sp>9990<sp>?<sp>Ss<sp>0:07<sp>/test/java\n<sp>" + ( this . oldProcessId ) ) + "<sp>?<sp>Ss<sp>0:07<sp>/osc/java...
org . junit . Assert . assertNull ( foundPid )
testIntervalActionWithZeroTotal ( ) { final com . liferay . portal . kernel . interval . IntervalActionProcessor < java . lang . Void > intervalActionProcessor = new com . liferay . portal . kernel . interval . IntervalActionProcessor ( 0 ) ; intervalActionProcessor . setPerformIntervalActionMethod ( new com . liferay ...
org . junit . Assert . assertEquals ( 0 , _count . get ( ) )
CollisionWithMergeInlineAbove1 ( ) { org . eclipse . imp . pdb . test . persistent . TrieSetTests . DummyValue hash98304_obj1 = new org . eclipse . imp . pdb . test . persistent . TrieSetTests . DummyValue ( 1 , 98304 ) ; org . eclipse . imp . pdb . test . persistent . TrieSetTests . DummyValue hash98304_obj2 = new org...
org . junit . Assert . assertEquals ( xs , ys )
equals ( ) { org . apache . jackrabbit . oak . plugins . document . Path path = org . apache . jackrabbit . oak . plugins . document . Path . fromString ( "/this/is/a/test/path" ) ; org . apache . jackrabbit . oak . plugins . document . RevisionVector rv = new org . apache . jackrabbit . oak . plugins . document . Revi...
org . junit . Assert . assertEquals ( expected , new org . apache . jackrabbit . oak . plugins . document . PathRev ( path , rv ) )
testRemovesActionListener ( ) { com . eclipsesource . tabris . internal . ui . UIDescriptor uiDescriptor = new com . eclipsesource . tabris . internal . ui . UIDescriptor ( ) ; com . eclipsesource . tabris . ui . ActionListener listener = mock ( com . eclipsesource . tabris . ui . ActionListener . class ) ; uiDescripto...
org . junit . Assert . assertFalse ( actionListeners . contains ( listener ) )
testEmptyExtendedClass ( ) { org . apache . servicecomb . serviceregistry . api . registry . Microservice microservice = org . apache . servicecomb . serviceregistry . config . TestPropertiesLoader . microserviceFactory . create ( "default" , "emptyExtendedClass" ) ; "<AssertPlaceHolder>" ; } getProperties ( ) { return...
org . junit . Assert . assertEquals ( 0 , microservice . getProperties ( ) . size ( ) )
postAnInvalidComment ( ) { com . silverpeas . comment . web . CommentEntity aComment = new com . silverpeas . comment . web . CommentEntity ( ) ; com . sun . jersey . api . client . ClientResponse response = post ( aComment , at ( aResourceURI ( ) ) ) ; int recievedStatus = response . getStatus ( ) ; int badRequest = S...
org . junit . Assert . assertThat ( recievedStatus , is ( badRequest ) )
testBuildMultipleLongwhereValues ( ) { java . lang . String expectedAwql = "SELECT<sp>CampaignId,<sp>CampaignName<sp>FROM<sp>AD_PERFORMANCE_REPORT<sp>WHERE<sp>" + "CampaignId<sp>IN<sp>[1234,<sp>5678]" ; com . google . api . ads . adwords . lib . utils . ReportQueryInterface reportQuery = new com . google . api . ads . ...
org . junit . Assert . assertEquals ( expectedAwql , reportQuery . toString ( ) )
convertPolygon_NoRedundantSpaces_ShouldConvert ( ) { java . lang . String wkt = "POLYGON<sp>((30<sp>10,<sp>40<sp>40,<sp>20<sp>40,<sp>10<sp>20,<sp>30<sp>10))" ; java . lang . String geoJson = org . nlpcn . es4sql . spatial . WktToGeoJsonConverter . toGeoJson ( wkt ) ; java . lang . String expectedGeoJson = "{\"type\":\"...
org . junit . Assert . assertEquals ( expectedGeoJson , geoJson )
testWithErrorAndLoggingErrorHandler ( ) { java . util . concurrent . Callable < java . lang . String > callback = new java . util . concurrent . Callable < java . lang . String > ( ) { public java . lang . String call ( ) throws org . springframework . batch . poller . scheduling . Exception { java . util . Set < java ...
org . junit . Assert . assertEquals ( null , value )
getProviders_shouldNotFindAnyProvidersIfNoneHaveGivenAttributeValues ( ) { java . util . Map < org . openmrs . ProviderAttributeType , java . lang . Object > attributes = new java . util . HashMap ( ) ; attributes . put ( service . getProviderAttributeType ( 1 ) , new java . text . SimpleDateFormat ( "yyyy-MM-dd" ) . p...
org . junit . Assert . assertEquals ( 0 , providers . size ( ) )
testDetectMultipleKnees ( ) { double [ ] x = new double [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; double [ ] y = new double [ ] { 0.2 , 0.2 , 0.4 , 0.4 , 0.4 , 0.5 , 0.5 , 0.5 , 0.8 , 0.8 } ; won . matcher . solr . utils . Kneedle kneedle = new won . matcher . solr . utils . Kneedle ( 1 ) ; int [ ] knees = kneed...
org . junit . Assert . assertArrayEquals ( new int [ ] { 2 , 5 , 8 } , knees )
builderBuildsWithGivenIoThreadCount ( ) { io . searchbox . client . config . HttpClientConfig givenConfig = new io . searchbox . client . config . HttpClientConfig . Builder ( "http://localhost:9200" ) . build ( ) ; org . appenders . log4j2 . elasticsearch . jest . WrappedHttpClientConfig . Builder builder = new org . ...
org . junit . Assert . assertEquals ( ioThreadCount , config . getIoThreadCount ( ) )
testCorrectContentType ( ) { final byte [ ] is = getBytesForCapabilities ( "DES3" ) ; final org . jscep . transport . response . Capabilities caps = fixture . getResponse ( is , "text/plain" ) ; "<AssertPlaceHolder>" ; } getStrongestCipher ( ) { final java . lang . String cipher ; if ( ( cipherExists ( "AES" ) ) && ( c...
org . junit . Assert . assertEquals ( "DESede" , caps . getStrongestCipher ( ) )
hasIgnorePlaceholder_Equal_NoWhitespaceInPlaceholder_CDATA_TEST ( ) { java . lang . String control = "<elem1><elem11>${xmlunit.ignore}</elem11></elem1>" ; java . lang . String test = "<elem1><elem11><![CDATA[abc]]></elem11></elem1>" ; org . xmlunit . placeholder . Diff diff = org . xmlunit . builder . DiffBuilder . com...
org . junit . Assert . assertFalse ( diff . hasDifferences ( ) )
testStoresName ( ) { com . eclipsesource . tabris . tracking . internal . piwik . model . ecommerce . EcommerceItem ecommerceItem = new com . eclipsesource . tabris . tracking . internal . piwik . model . ecommerce . EcommerceItem ( "foo" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( "foo" , ecommerceItem . getName ( ) )
testConfigureStoreWithTLS ( ) { doReturn ( objectMock ) . when ( propertiesMock ) . setProperty ( ( ( "mail." + ( io . cloudslang . content . mail . services . GetMailMessageTest . POP3_PROTOCOL ) ) + ".ssl.enable" ) , io . cloudslang . content . mail . services . GetMailMessageTest . STR_FALSE ) ; doReturn ( objectMoc...
org . junit . Assert . assertEquals ( storeMock , store )
getStreetTypesShouldReturnStreetTypeEnumValues ( ) { com . gisgraphy . webapp . action . StreetSearchAction streetSearchAction = new com . gisgraphy . webapp . action . StreetSearchAction ( ) ; "<AssertPlaceHolder>" ; } getStreetTypes ( ) { return com . gisgraphy . street . StreetType . values ( ) ; }
org . junit . Assert . assertArrayEquals ( com . gisgraphy . street . StreetType . values ( ) , streetSearchAction . getStreetTypes ( ) )
test_notify_exception ( ) { try { com . webpagebytes . cms . cmsdata . WPBParameter parameterMock = org . powermock . api . easymock . PowerMock . createMock ( com . webpagebytes . cms . cmsdata . WPBParameter . class ) ; parameterCacheMock . Refresh ( ) ; org . easymock . EasyMock . expectLastCall ( ) . andThrow ( new...
org . junit . Assert . assertTrue ( false )
testDiscovery ( ) { org . apache . karaf . cellar . dns . DnsDiscoveryService discovery = new org . apache . karaf . cellar . dns . DnsDiscoveryService ( ) ; discovery . setDnsService ( "_xmpp-server._tcp.gmail.com" ) ; "<AssertPlaceHolder>" ; } discoverMembers ( ) { org . apache . karaf . cellar . dns . DnsDiscoverySe...
org . junit . Assert . assertFalse ( discovery . discoverMembers ( ) . isEmpty ( ) )
toAmazonS3URISchemeIsS3aUppercase ( ) { com . amazonaws . services . s3 . AmazonS3URI result = com . hotels . bdp . circustrain . s3s3copier . aws . AmazonS3URIs . toAmazonS3URI ( new java . net . URI ( "S3A://a/b" ) ) ; com . amazonaws . services . s3 . AmazonS3URI expected = new com . amazonaws . services . s3 . Amaz...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( expected ) )
deveEnviarUltimoNSU ( ) { final com . fincatto . documentofiscal . nfe . classes . distribuicao . NFDistribuicaoNSU distribuicaoNSU = new com . fincatto . documentofiscal . nfe . classes . distribuicao . NFDistribuicaoNSU ( ) ; distribuicaoNSU . setUltimoNSU ( "000000000000012" ) ; "<AssertPlaceHolder>" ; } getUltimoNS...
org . junit . Assert . assertEquals ( "000000000000012" , distribuicaoNSU . getUltimoNSU ( ) )
readExistingSignatureAndValidate ( ) { byte [ ] xadesSignature = org . apache . commons . io . FileUtils . readFileToByteArray ( new java . io . File ( "src/test/resources/testFiles/xades/test-signature-with-timestamp.xml" ) ) ; byte [ ] digest = java . security . MessageDigest . getInstance ( "SHA-256" ) . digest ( "h...
org . junit . Assert . assertTrue ( signature . validateSignature ( ) . isValid ( ) )
unidirectionalManyToOne ( ) { javax . persistence . EntityManager em = factory . createEntityManager ( ) ; org . meri . jpa . relationships . entities . manytoone . UnidirectionalManyToOneOwner owner = em . find ( org . meri . jpa . relationships . entities . manytoone . UnidirectionalManyToOneOwner . class , 1 ) ; em ...
org . junit . Assert . assertEquals ( 5 , inverse . getId ( ) )
testAangeverOuderMetBetrokkenheidKind ( ) { final nl . bzk . brp . bijhouding . bericht . model . RegistratieAdresActieElement actie = createRegistratieAdresValideerActie ( false , false , nl . bzk . brp . bijhouding . bericht . model . RegistratieAdresActieElementTest . LEEFTIJD_OUDER_18 , nl . bzk . brp . bijhouding ...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
addIndexFront2RemovedTest ( ) { org . threadly . concurrent . collections . ConcurrentArrayList . DataSet < java . lang . Integer > result = org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . removed2FromFront . add ( 5 , 100 ) . add ( 0 , 200 ) ; java . lang . Integer [ ] expectedResult = new...
org . junit . Assert . assertTrue ( result . equals ( org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . makeDataSet ( expectedResult , 0 , expectedResult . length ) ) )
testFunction14 ( ) { net . objecthunter . exp4j . function . Function custom1 = new net . objecthunter . exp4j . function . Function ( "multiply" , 2 ) { @ net . objecthunter . exp4j . Override public double apply ( double ... values ) { return ( values [ 0 ] ) * ( values [ 1 ] ) ; } } ; double varX = 1 ; net . objecth...
org . junit . Assert . assertTrue ( ( expected == actual ) )
testJSONFormatNonStringValue ( ) { final org . apache . logging . log4j . message . ObjectMapMessage msg = new org . apache . logging . log4j . message . ObjectMapMessage ( ) . with ( "key" , 1L ) ; final java . lang . String result = msg . getFormattedMessage ( new java . lang . String [ ] { "JSON" } ) ; final java . ...
org . junit . Assert . assertEquals ( expected , result )
testSinhAsinh ( ) { double [ ] epsilon = new double [ ] { 3.0E-16 , 3.0E-16 , 4.0E-16 , 7.0E-16 , 3.0E-15 , 8.0E-15 } ; for ( int maxOrder = 0 ; maxOrder < 6 ; ++ maxOrder ) { for ( double x = 0.1 ; x < 1.2 ; x += 0.001 ) { org . apache . commons . math4 . analysis . differentiation . DerivativeStructure dsX = new org ...
org . junit . Assert . assertEquals ( 0.0 , zero . getPartialDerivative ( n ) , epsilon [ n ] )
deleteService ( ) { final net . violet . platform . datamodel . User myUser = getActionTestUser ( ) ; final net . violet . platform . datamodel . VObject myObject = Factories . VOBJECT . findByOwner ( myUser ) . get ( 0 ) ; myForm = loadTaichi ( myUser , myObject ) ; "<AssertPlaceHolder>" ; } getIsReg ( ) { return this...
org . junit . Assert . assertEquals ( 0 , myForm . getIsReg ( ) )
testCreate_wornd_size ( ) { com . github . mygreen . supercsv . builder . FieldAccessor field = getFieldAccessor ( com . github . mygreen . supercsv . cellprocessor . conversion . LeftPadFactoryTest . ErrorCsv . class , "col_wrong_size" , comparator ) ; com . github . mygreen . supercsv . builder . standard . StringPro...
org . junit . Assert . assertThat ( e )
givenWorkerConfigurationWithDefaultConstructorThenSetJettyConfig ( ) { final fr . gouv . vitam . worker . server . rest . WorkerConfiguration workerConfiguration = new fr . gouv . vitam . worker . server . rest . WorkerConfiguration ( ) ; workerConfiguration . setJettyConfig ( "jettyFakeConfig" ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( "jettyFakeConfig" , workerConfiguration . getJettyConfig ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . document . library . opener . model . DLOpenerFileEntryReference missingDLOpenerFileEntryReference = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPri...
org . junit . Assert . assertNull ( missingDLOpenerFileEntryReference )
getAllObjects_shouldReturnAllSavedObjectsWithTheGivenTypeAndPartialName ( ) { java . util . List < org . openmrs . Program > l = dao . getAllObjectsByName ( org . openmrs . Program . class , "TestProgram" , false ) ; "<AssertPlaceHolder>" ; } size ( ) { return allergies . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , l . size ( ) )
createException ( ) { doThrow ( alluxio . client . file . BaseFileSystemTest . EXCEPTION ) . when ( mFileSystemMasterClient ) . createFile ( any ( alluxio . AlluxioURI . class ) , any ( alluxio . grpc . CreateFilePOptions . class ) ) ; try { mFileSystem . createFile ( new alluxio . AlluxioURI ( "/" ) , alluxio . grpc ....
org . junit . Assert . assertSame ( alluxio . client . file . BaseFileSystemTest . EXCEPTION , e )
testScoredSortedSetValueRange ( ) { org . redisson . api . RScoredSortedSetRx < java . lang . String > set = redisson . < java . lang . String > getScoredSortedSet ( "simple" ) ; sync ( set . add ( 0 , "a" ) ) ; sync ( set . add ( 1 , "b" ) ) ; sync ( set . add ( 2 , "c" ) ) ; sync ( set . add ( 3 , "d" ) ) ; sync ( se...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "c" , "d" } , a )
saltTest ( ) { byte [ ] salt = new org . apache . cloudstack . server . auth . PBKDF2UserAuthenticator ( ) . makeSalt ( ) ; "<AssertPlaceHolder>" ; } makeSalt ( ) { java . security . SecureRandom sr = java . security . SecureRandom . getInstance ( "SHA1PRNG" ) ; byte [ ] salt = new byte [ org . apache . cloudstack . se...
org . junit . Assert . assertTrue ( ( ( salt . length ) > 16 ) )
endOfStreamCallbackShouldWaitForMessageDelivery ( ) { fakeClock . forwardTime ( 10 , TimeUnit . MILLISECONDS ) ; deframer . deframe ( io . grpc . internal . MessageDeframerTest . buffer ( new byte [ ] { 0 , 0 , 0 , 0 , 1 , 3 } ) ) ; deframer . closeWhenComplete ( ) ; verifyNoMoreInteractions ( listener ) ; deframer . r...
org . junit . Assert . assertEquals ( com . google . common . primitives . Bytes . asList ( new byte [ ] { 3 } ) , io . grpc . internal . MessageDeframerTest . bytes ( producer . getValue ( ) . next ( ) ) )
testIsConditionValidWhenHeaderIsNotUnique ( ) { final org . drools . workbench . models . guided . dtable . shared . model . ConditionCol52 conditionCol1 = fakeConditionCol52 ( "header" ) ; final org . drools . workbench . models . guided . dtable . shared . model . ConditionCol52 conditionCol2 = fakeConditionCol52 ( "...
org . junit . Assert . assertFalse ( validator . isConditionValid ( conditionCol2 ) )
testRangeCoveredForBigDecimal ( ) { final java . math . BigDecimal min = new java . math . BigDecimal ( 100.0 ) ; final java . math . BigDecimal superMin = new java . math . BigDecimal ( 50.0 ) ; final java . math . BigDecimal max = new java . math . BigDecimal ( 200.0 ) ; final java . math . BigDecimal superMax = new ...
org . junit . Assert . assertTrue ( org . opendaylight . yangtools . yang . model . util . type . NumberUtil . isRangeCovered ( min , max , superMin , superMax ) )
testPostfixParanthesis ( ) { java . lang . String expr ; double expected ; expr = "(3<sp>+<sp>3<sp>*<sp>14)<sp>*<sp>(2<sp>*<sp>(24-17)<sp>-<sp>14)/((34)<sp>-2)" ; expected = ( ( 3 + ( 3 * 14 ) ) * ( ( 2 * ( 24 - 17 ) ) - 14 ) ) / ( 34 - 2 ) ; net . objecthunter . exp4j . Expression e = new net . objecthunter . exp4j . ...
org . junit . Assert . assertTrue ( ( expected == ( e . evaluate ( ) ) ) )
testStandardDecodePushbackSequenceNullSecondElementReturnsNull ( ) { org . owasp . esapi . codecs . PushbackSequence < java . lang . Character > mockPushback = org . mockito . Mockito . mock ( org . owasp . esapi . codecs . PushbackSequence . class ) ; org . mockito . Mockito . when ( mockPushback . next ( ) ) . thenRe...
org . junit . Assert . assertNull ( decChar )
testMissingEmbeddedTemplate ( ) { org . stringtemplate . v4 . test . ErrorBuffer errors = new org . stringtemplate . v4 . test . ErrorBuffer ( ) ; java . lang . String templates = "t()<sp>::=<sp>\"<foo()>\"" + ( Misc . newline ) ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . test . STGroup g...
org . junit . Assert . assertEquals ( expected , result )
validDecodedStringShouldReturnQuery ( ) { java . lang . String queryString = "-Tperson<sp>DW-RIPE" ; net . ripe . db . whois . query . query . Query expectedQuery = net . ripe . db . whois . query . query . Query . parse ( queryString ) ; when ( channelMock . getRemoteAddress ( ) ) . thenReturn ( new java . net . InetS...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testInsertByJT ( ) { int updatedRows = jdbcTemplate . update ( "insert<sp>into<sp>t_user(username,password)<sp>values(?,?)" , new java . lang . Object [ ] { "aa" , "aaa" } ) ; "<AssertPlaceHolder>" ; } update ( int , java . lang . String , int ) { java . sql . Connection conn = java . sql . DriverManager . getConnectio...
org . junit . Assert . assertTrue ( ( updatedRows > 0 ) )
getAutoriteitAfgifteReisdocTestOK ( ) { final java . lang . String aarCode = "PK" ; final java . lang . String resultAar = lo3StamtabelService . getAutoriteitVanAfgifteReisdocument ( aarCode ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( aarCode , resultAar )
isExpandedReturnsFalseForNullSetting ( ) { org . phenotips . configuration . RecordSection s = new org . phenotips . configuration . spi . UIXRecordSection ( this . uiExtension , this . uixManager , this . orderFilter ) ; "<AssertPlaceHolder>" ; } isExpandedByDefault ( ) { return this . expanded ; }
org . junit . Assert . assertFalse ( s . isExpandedByDefault ( ) )
testTxAssociationChangeConcurrently ( ) { final int TEST_RUNS = 5 ; final int EXPECTED_MINIMUM_DESTROY_CNT = TEST_RUNS + ( com . hp . mwtests . ts . jta . cdi . transactionScoped . TestCDITransactionScopeBean . getPreDestroyCnt ( ) ) ; com . hp . mwtests . ts . jta . cdi . transactionScoped . ExecutorService executor =...
org . junit . Assert . assertTrue ( ( EXPECTED_MINIMUM_DESTROY_CNT <= ( com . hp . mwtests . ts . jta . cdi . transactionScoped . TestCDITransactionScopeBean . getPreDestroyCnt ( ) ) ) )
getAllConceptProposals_shouldReturnAllConceptProposalsIncludingRetiredOnesWhenGivenTrue ( ) { int matchedConceptProposals = 2 ; java . util . List < org . openmrs . ConceptProposal > conceptProposals = conceptService . getAllConceptProposals ( true ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . st...
org . junit . Assert . assertEquals ( matchedConceptProposals , conceptProposals . size ( ) )
testListChildrenMaterialCategories ( ) { org . libreplan . business . materials . entities . MaterialCategory category = createValidMaterialCategory ( ) ; org . libreplan . business . materials . entities . MaterialCategory subcategory = createValidMaterialCategory ( ) ; int previous = category . getSubcategories ( ) ....
org . junit . Assert . assertEquals ( ( previous + 1 ) , childrenList . size ( ) )
testGetMatchingRecordFields_POST ( ) { try ( com . salesforce . dva . argus . sdk . ArgusService argusService = new com . salesforce . dva . argus . sdk . ArgusService ( getMockedClient ( "/DiscoveryServiceTest.json" ) ) ) { com . salesforce . dva . argus . sdk . DiscoveryService discoveryService = argusService . getDi...
org . junit . Assert . assertEquals ( expected , result )
testSortBulkMapper ( ) { K key1 = keyFactory . instance ( ) ; V value1 = valueFactory . instance ( ) ; org . junit . Assume . assumeTrue ( ( value1 instanceof java . lang . Number ) ) ; redisTemplate . opsForList ( ) . rightPush ( key1 , value1 ) ; org . springframework . data . redis . core . List < java . lang . Stri...
org . junit . Assert . assertEquals ( org . springframework . data . redis . core . Collections . singletonList ( "FOO" ) , results )
testAnnotationOrderDoesNotMatter ( ) { org . jboss . arquillian . drone . spi . DronePoint < org . jboss . arquillian . drone . impl . mockdrone . MockDrone > dronePoint = new org . jboss . arquillian . drone . impl . DronePointImpl < org . jboss . arquillian . drone . impl . mockdrone . MockDrone > ( org . jboss . arq...
org . junit . Assert . assertThat ( dronePoint , org . hamcrest . CoreMatchers . is ( dronePoint1 ) )
checkAbilityToStartServiceWithLogFileUsingFlag ( ) { testLogFile = new java . io . File ( "Log2.txt" ) ; service = new io . appium . java_client . service . local . AppiumServiceBuilder ( ) . withArgument ( ( ) -> "--log" , testLogFile . getAbsolutePath ( ) ) . build ( ) ; service . start ( ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( testLogFile . exists ( ) )
delegateSetOnConstruction ( ) { "<AssertPlaceHolder>" ; } getDelegate ( ) { if ( ( dsDelegate ) == null ) { dsDelegate = new gov . hhs . fha . nhinc . corex12 . ds . realtime . entity . OutboundX12RealTimeDelegate ( ) ; } return dsDelegate ; }
org . junit . Assert . assertNotNull ( builder . getDelegate ( ) )
serializePublicationWithJoynrRuntimeException ( ) { io . joynr . exceptions . JoynrRuntimeException error = new io . joynr . exceptions . JoynrRuntimeException ( "detail<sp>message:<sp>JoynrRuntimeException" ) ; java . lang . String subscriptionId = "12345" ; joynr . SubscriptionPublication publication = new joynr . Su...
org . junit . Assert . assertEquals ( publication , receivedPublication )
testExonOverlapStopLostOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946591\t.\tN\t<DEL:ME>\t.\t.\tSVTYPE=DEL;END=58946671" ) ; final java . lang . String expected = "1\t58946591\t.\tN\t<DEL:ME>\t.\t.\tEND=58946671;" + ( "SVANN=stop_lost&mobile_element_deletion&coding_t...
org . junit . Assert . assertEquals ( expected , actual )
validFilename_String ( ) { java . lang . String f = ( net . coobird . thumbnailator . tasks . io . FileImageSinkTest . TMPDIR ) + "/test.png" ; net . coobird . thumbnailator . tasks . io . FileImageSink sink = new net . coobird . thumbnailator . tasks . io . FileImageSink ( f ) ; "<AssertPlaceHolder>" ; } getSink ( ) {...
org . junit . Assert . assertEquals ( new java . io . File ( f ) , sink . getSink ( ) )
compareGeneratedRequests ( ) { org . opennms . netmgt . provision . service . vmware . VmwareRequisitionUrlConnection vmwareUrlConnection = new org . opennms . netmgt . provision . service . vmware . VmwareRequisitionUrlConnection ( new java . net . URL ( vmwareUrl ) ) ; org . opennms . netmgt . provision . service . v...
org . junit . Assert . assertEquals ( vmwareUrlImportRequest , requisitionUrlImportRequest )
isValid ( ) { javax . validation . Validator validator = javax . validation . Validation . buildDefaultValidatorFactory ( ) . getValidator ( ) ; org . greenbuttonalliance . espi . common . domain . ReadingQuality readingQuality = new org . greenbuttonalliance . espi . common . domain . ReadingQuality ( ) ; java . util ...
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
testGetNamespaces_FromCursor_Limit ( ) { long millis = java . lang . System . currentTimeMillis ( ) ; java . util . List < com . jmethods . catatumbo . entities . StringField > entities = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { java . lang . String namespace = java . lang . String . valueOf...
org . junit . Assert . assertEquals ( 2 , namespaces . size ( ) )
map_payload ( ) { final java . lang . String rulebase = "rules/reloaded/msg011.prova" ; java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; java . util . Map < java . lang . String , java . lang . Object > globals = new java . util . HashMap < java . l...
org . junit . Assert . assertEquals ( 1 , count . get ( ) )
onCreateShouldRegisterKeyListenerThatSendsMessageAndClearsInputOnEnter ( ) { activityController . create ( ) ; final android . widget . EditText privateChatInput = ( ( android . widget . EditText ) ( controller . findViewById ( R . id . privateChatInput ) ) ) ; privateChatInput . setText ( "Hello" ) ; privateChatInput ...
org . junit . Assert . assertEquals ( "" , privateChatInput . getText ( ) . toString ( ) )
testClassPathResourceWithClass ( ) { leap . lang . resource . Resource resource = new leap . lang . resource . ClassPathResource ( "Resource.class" , getClass ( ) ) ; doTestResource ( resource ) ; "<AssertPlaceHolder>" ; } doTestResource ( leap . lang . resource . Resource ) { org . junit . Assert . assertEquals ( "Res...
org . junit . Assert . assertEquals ( resource , new leap . lang . resource . ClassPathResource ( "Resource.class" , getClass ( ) ) )