input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testWrongCharacterInHex ( ) { java . lang . String header = "Digest<sp>nc=я" ; java . io . StringReader input = new java . io . StringReader ( header ) ; java . util . Map < java . lang . String , java . lang . String > result = org . apache . tomcat . util . http . parser . HttpParser . parseAuthorizationDigest ( inpu... | org . junit . Assert . assertNull ( result ) |
container_null ( ) { biweekly . io . json . JCalSerializerTest . Container container = new biweekly . io . json . JCalSerializerTest . Container ( null ) ; java . io . StringWriter result = new java . io . StringWriter ( ) ; mapper . writeValue ( result , container ) ; java . lang . String actual = result . toString ( ... | org . junit . Assert . assertEquals ( expected , actual ) |
after_step_hook_scenario_contains_before_step_hook_failure_when_before_step_hook_does_not_pass ( ) { java . lang . Throwable expectedError = new org . junit . AssumptionViolatedException ( "oops" ) ; doThrow ( expectedError ) . when ( beforeHookDefinition ) . execute ( any ( cucumber . runner . Scenario . class ) ) ; d... | org . junit . Assert . assertThat ( scenario . getError ( ) , org . hamcrest . core . Is . is ( expectedError ) ) |
classifyPersonTest ( ) { try { com . google . api . services . plus . model . Person person = new com . google . api . services . plus . model . Person ( ) ; person . setKind ( "plus#person" ) ; java . lang . Class retClass = org . apache . streams . gplus . serializer . util . GPlusEventClassifier . detectClass ( org ... | org . junit . Assert . assertEquals ( retClass , com . google . api . services . plus . model . Person . class ) |
testUpdateDockerPZInUseToSchedulerPZShouldFail ( ) { com . vmware . photon . controller . model . resources . ResourcePoolService . ResourcePoolState createdPlacementZone = createPlacementZone ( "docker-placement-zone" , false ) ; "<AssertPlaceHolder>" ; createComputeState ( createdPlacementZone ) ; com . vmware . phot... | org . junit . Assert . assertNotNull ( createdPlacementZone ) |
testIsValidIdCard ( ) { boolean result = cc . shanruifeng . functions . udfs . scalar . string . ChinaIdCardFunctions . isValidIdCard ( io . airlift . slice . Slices . utf8Slice ( "110101198901084517" ) ) ; "<AssertPlaceHolder>" ; } isValidIdCard ( io . airlift . slice . Slice ) { return cc . shanruifeng . functions . ... | org . junit . Assert . assertEquals ( true , result ) |
shouldRefreshWithValidClusterConfig ( ) { com . couchbase . client . core . ClusterFacade cluster = mock ( com . couchbase . client . core . ClusterFacade . class ) ; com . couchbase . client . core . config . refresher . CarrierRefresher refresher = new com . couchbase . client . core . config . refresher . CarrierRef... | org . junit . Assert . assertEquals ( 0 , content . refCnt ( ) ) |
testGetPropStringString ( ) { java . lang . String name1 = "alpha" ; java . lang . String name2 = "bravo" ; java . lang . String providerNo1 = "100" ; java . lang . String providerNo2 = "200" ; org . oscarehr . common . model . UserProperty userProperty1 = new org . oscarehr . common . model . UserProperty ( ) ; org . ... | org . junit . Assert . assertEquals ( expectedResult , result ) |
testFindByClientId ( ) { int clientId1 = 101 ; int clientId2 = 202 ; org . oscarehr . PMmodule . model . VacancyClientMatch vCM1 = new org . oscarehr . PMmodule . model . VacancyClientMatch ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( vCM1 ) ; vCM1 . setClient_id (... | org . junit . Assert . assertTrue ( true ) |
testEqualsHashCode ( ) { final java . util . HashSet < org . kairosdb . core . DataPoint > dataPointsSet = new java . util . HashSet ( org . kairosdb . core . datapoints . DataPointTestCommon . dataPointList ) ; "<AssertPlaceHolder>" ; } size ( ) { return errors . size ( ) ; } | org . junit . Assert . assertEquals ( org . kairosdb . core . datapoints . DataPointTestCommon . dataPointList . size ( ) , dataPointsSet . size ( ) ) |
isNotLateIfNotStarted ( ) { expect ( mockClock . getGranularity ( ) ) . andReturn ( 1L ) . anyTimes ( ) ; expect ( mockClock . getNanoTime ( ) ) . andReturn ( new org . fishwife . jrugged . interval . DiscreteInterval ( 4L , 5L ) ) . anyTimes ( ) ; replay ( mockClock ) ; impl . set ( 1000L , 100L ) ; "<AssertPlaceHolde... | org . junit . Assert . assertFalse ( impl . isLate ( ) ) |
testContextRootUrlRewrite ( ) { java . lang . String contextRootURL = ( "http://localhost:" + ( org . apache . hadoop . hive . llap . daemon . services . impl . TestLlapWebServices . llapWSPort ) ) + "/" ; java . lang . String contextRootContent = getURLResponseAsString ( contextRootURL ) ; java . lang . String indexHt... | org . junit . Assert . assertEquals ( contextRootContent , indexHtmlContent ) |
testingGentypeSharedConsumerFromInterface ( ) { java . lang . String [ ] testArgs = new java . lang . String [ ] { "-genType" 1 , "-genType" 7 , "-genType" , "SharedConsumer" , "-interface" , "org/ebayopensource/turmeric/tools/codegen/AdminV1.java" , "-dest" , destDir . getAbsolutePath ( ) , "-genType" 8 , ( destDir . ... | org . junit . Assert . assertTrue ( ( path + "-genType" 6 ) , sharedConsumer . exists ( ) ) |
testDeleteAllFolders ( ) { com . liferay . portal . kernel . model . Group group = com . liferay . portal . kernel . test . util . GroupTestUtil . addGroup ( ) ; com . liferay . bookmarks . model . BookmarksFolder parentFolder = com . liferay . bookmarks . test . util . BookmarksTestUtil . addFolder ( group . getGroupI... | org . junit . Assert . assertEquals ( folders . toString ( ) , 0 , folders . size ( ) ) |
testGetInclNoLocationClassesFalse ( ) { org . jacoco . core . runtime . AgentOptions options = new org . jacoco . core . runtime . AgentOptions ( "inclnolocationclasses=false" ) ; "<AssertPlaceHolder>" ; } getInclNoLocationClasses ( ) { return getOption ( org . jacoco . core . runtime . AgentOptions . INCLNOLOCATIONCLA... | org . junit . Assert . assertFalse ( options . getInclNoLocationClasses ( ) ) |
getBuiltInDatatype ( ) { "<AssertPlaceHolder>" ; } getBuiltInDatatype ( ) { org . junit . Assert . assertEquals ( org . semanticweb . owlapi . api . test . literals . RDF_PLAIN_LITERAL , plainLiteral . getBuiltInDatatype ( ) ) ; } | org . junit . Assert . assertEquals ( org . semanticweb . owlapi . api . test . literals . RDF_PLAIN_LITERAL , plainLiteral . getBuiltInDatatype ( ) ) |
should_set_exact_soft_clip_bounds ( ) { au . edu . wehi . idsv . StructuralVariationCallBuilder builder = new au . edu . wehi . idsv . StructuralVariationCallBuilder ( getContext ( ) , ( ( au . edu . wehi . idsv . VariantContextDirectedEvidence ) ( new au . edu . wehi . idsv . IdsvVariantContextBuilder ( getContext ( )... | org . junit . Assert . assertEquals ( new au . edu . wehi . idsv . BreakpointSummary ( 0 , FWD , 12 , 12 , 12 , 0 , BWD , 10 , 10 , 10 ) , de . getBreakendSummary ( ) ) |
testBuildReportChunkSuccessfull2 ( ) { dchunk . setContent ( odata ) ; instance . buildReportChunk ( dchunk , doc , true ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] event = events . get ( 0 ) ; confirmParagraphA... | org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 5 ) ) |
removetest1 ( ) { com . bt . bcos . adapter . AdapterIf bcosAdapter = new org . opennms . xmlclient . bcos . OpenNmsBcosAdapter ( ) ; java . lang . String service = "" ; java . lang . String machine_ident = "BTNode1" ; "<AssertPlaceHolder>" ; } remove ( javax . management . ObjectName , javax . management . MBeanAttrib... | org . junit . Assert . assertTrue ( bcosAdapter . remove ( service , machine_ident ) ) |
service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithEmptyBody ( ) { final com . azure . common . entities . HttpBinJSON result = createService ( com . azure . common . implementation . RestProxyTests . Service19 . class ) . putWithHeaderApplicationJsonContentTypeAndCharsetAndStringBody ( "" ) ; "... | org . junit . Assert . assertEquals ( "" , result . data ) |
testPoolSize2 ( ) { java . lang . String host = "192.168.1.107" ; int port = 6379 ; int connectionPoolSize = 5 ; final org . cyy . fw . nedis . NedisClient client = new org . cyy . fw . nedis . NedisClientBuilder ( ) . setServerHost ( host ) . setPort ( port ) . setConnectTimeoutMills ( 5000 ) . setConnectionPoolSize (... | org . junit . Assert . assertEquals ( 3 , client . getIdleConnections ( ) ) |
testBigDecimal ( ) { final java . math . BigDecimal bd = new java . math . BigDecimal ( "123456.789" ) ; final byte [ ] buf = commons . serialization . hessian . Hessian2Serialization . serialize ( bd ) ; final java . math . BigDecimal exp = ( ( java . math . BigDecimal ) ( commons . serialization . hessian . Hessian2S... | org . junit . Assert . assertTrue ( ( ( bd . compareTo ( exp ) ) == 0 ) ) |
writeBeanIfValid_hasBindings_singleEvent ( ) { binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . readBean ( item ) ; binder . addStatusChangeListener ( this :: statusChanged ) ; "<AssertPlaceHolder>" ; binder . writeBeanIfValid ( item ) ; verifyEvent ( ) ; } get ( ) {... | org . junit . Assert . assertNull ( event . get ( ) ) |
constructFromInet6AddressWithScopeId ( ) { byte [ ] bytes = com . googlecode . ipv6 . IPv6Address . fromString ( "2001:db8:85a3::8a2e:370:7334" ) . toByteArray ( ) ; final java . net . InetAddress inetAddress = java . net . Inet6Address . getByAddress ( "host" , bytes , 12 ) ; "<AssertPlaceHolder>" ; } fromInetAddress ... | org . junit . Assert . assertEquals ( "2001:db8:85a3::8a2e:370:7334" , com . googlecode . ipv6 . IPv6Address . fromInetAddress ( inetAddress ) . toString ( ) ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . ClusterGroup > clusterGroups = _persistence . fetchByPrimaryKey... | org . junit . Assert . assertTrue ( clusterGroups . isEmpty ( ) ) |
testGet ( ) { com . dongsw . authority . model . RolePermissions result = rolePermissionsService . get ( java . lang . Integer . valueOf ( 0 ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Integer ) { return dao . unique ( id ) ; } | org . junit . Assert . assertEquals ( new com . dongsw . authority . model . RolePermissions ( ) , result ) |
testEnsureBucketCountHonoured ( ) { for ( int count = 1 ; count < 100 ; count ++ ) { org . apache . activemq . artemis . core . server . impl . MessageGroups < java . lang . String > messageGroups = new org . apache . activemq . artemis . core . server . impl . BucketMessageGroups ( count ) ; for ( int i = 0 ; i < 100 ... | org . junit . Assert . assertEquals ( count , messageGroups . size ( ) ) |
testEqualsForEqualityOfPrimitiveAnObjectArrays ( ) { double [ ] a1 = new double [ ] { 1.0 , 2.0 , 3.0 , 4.0 } ; java . lang . Double [ ] a2 = new java . lang . Double [ ] { 1.0 , 2.0 , 3.0 , 4.0 } ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object , java . lang . Object ) { if ( ( array1 == null ) || ( array2 ==... | org . junit . Assert . assertTrue ( cz . zcu . kiv . jop . util . ArrayUtils . equals ( a1 , a2 ) ) |
overrideDefaultStyleTest ( ) { com . itextpdf . styledxmlparser . css . ICssResolver styleResolver = new com . itextpdf . svg . css . impl . SvgStyleResolver ( ) ; com . itextpdf . styledxmlparser . jsoup . nodes . Element svg = new com . itextpdf . styledxmlparser . jsoup . nodes . Element ( com . itextpdf . styledxml... | org . junit . Assert . assertEquals ( "white" , resolvedStyles . get ( SvgConstants . Attributes . STROKE ) ) |
testGetRule ( ) { io . symcpe . hendrix . api . storage . Tenant tenant = io . symcpe . hendrix . api . dao . RulesManager . getInstance ( ) . getTenant ( em , io . symcpe . hendrix . api . dao . TestRulesManager . TENANT_ID_3 ) ; io . symcpe . hendrix . api . storage . Rules rule = new io . symcpe . hendrix . api . st... | org . junit . Assert . assertEquals ( ruleId , rule2 . getRuleId ( ) ) |
testGetIntWithKeyWithDefaultWithInvalidProperty ( ) { final edu . illinois . library . cantaloupe . config . Configuration instance = getInstance ( ) ; instance . setProperty ( Key . MAX_PIXELS , "cats" ) ; "<AssertPlaceHolder>" ; } getInt ( java . lang . String , int ) { try { return getInt ( key ) ; } catch ( java . ... | org . junit . Assert . assertEquals ( 5 , instance . getInt ( Key . MAX_PIXELS , 5 ) ) |
testCreateBusinessObjectDataStorageUnit ( ) { org . finra . herd . model . api . xml . BusinessObjectDataKey businessObjectDataKey = new org . finra . herd . model . api . xml . BusinessObjectDataKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , PARTITION_VALUE , SUBPARTITI... | org . junit . Assert . assertEquals ( expectedResponse , result ) |
testConnAck_BrokerConnection_Accepted ( ) { attachClientAndBroker ( ) ; net . xenqtt . message . ConnAckMessage message = new net . xenqtt . message . ConnAckMessage ( net . xenqtt . message . ConnectReturnCode . ACCEPTED ) ; session . connAck ( channelToBroker , message ) ; verify ( channelToClient1 ) . send ( message... | org . junit . Assert . assertEquals ( ConnectReturnCode . ACCEPTED , ( ( net . xenqtt . message . ConnAckMessage ) ( messageCaptor . getValue ( ) ) ) . getReturnCode ( ) ) |
testDoesNotExist ( ) { boolean pass = false ; try { userDetailsService . loadUserByUsername ( "none" ) ; } catch ( org . springframework . security . core . userdetails . UsernameNotFoundException e ) { pass = true ; } "<AssertPlaceHolder>" ; } loadUserByUsername ( java . lang . String ) { gov . gtas . services . secur... | org . junit . Assert . assertTrue ( pass ) |
testTimeZoneMatches ( ) { final org . apache . commons . lang3 . time . DatePrinter printer = getInstance ( org . apache . commons . lang3 . time . FastDatePrinterTest . YYYY_MM_DD , org . apache . commons . lang3 . time . FastDatePrinterTest . NEW_YORK ) ; "<AssertPlaceHolder>" ; } getTimeZone ( ) { return mTimeZone ;... | org . junit . Assert . assertEquals ( org . apache . commons . lang3 . time . FastDatePrinterTest . NEW_YORK , printer . getTimeZone ( ) ) |
testNoScope ( ) { org . teiid . dqp . internal . process . SessionAwareCache < org . teiid . cache . Cachable > cache = new org . teiid . dqp . internal . process . SessionAwareCache < org . teiid . cache . Cachable > ( "resultset" , org . teiid . cache . DefaultCacheFactory . INSTANCE , SessionAwareCache . Type . RESU... | org . junit . Assert . assertTrue ( ( result == c ) ) |
badFlowOngeldigeLa01ZonderPf03 ( ) { startProcess ( maakUc811Bericht ( "0599" , 1231231234L ) ) ; controleerBerichten ( 0 , 1 , 0 ) ; final nl . bzk . migratiebrp . bericht . model . lo3 . impl . Lq01Bericht lq01Bericht = getBericht ( nl . bzk . migratiebrp . bericht . model . lo3 . impl . Lq01Bericht . class ) ; lq01B... | org . junit . Assert . assertTrue ( processEnded ( ) ) |
getTitleReturnsV1TagsTitleIfV2TagDoesNotExist ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; id3v1Tag . setTitle ( "V1<sp>Title" ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric . mp3agic . ID3Wrapper ( id3v1Tag , null ) ; "<A... | org . junit . Assert . assertEquals ( "V1<sp>Title" , wrapper . getTitle ( ) ) |
testGet ( ) { com . streamsets . pipeline . api . impl . CharTypeSupport ts = new com . streamsets . pipeline . api . impl . CharTypeSupport ( ) ; char o = 'c' ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return clone ( value ) ; } | org . junit . Assert . assertSame ( o , ts . get ( o ) ) |
testMoveAbove ( ) { org . eclipse . swt . widgets . Control child1 = new org . eclipse . swt . widgets . Label ( shell , org . eclipse . swt . SWT . NONE ) ; org . eclipse . swt . widgets . Control child2 = new org . eclipse . swt . widgets . Label ( shell , org . eclipse . swt . SWT . NONE ) ; child2 . moveAbove ( chi... | org . junit . Assert . assertArrayEquals ( new org . eclipse . swt . widgets . Control [ ] { child2 , child1 } , shell . getChildren ( ) ) |
testIsHiddenWhenElementIsNotHidden ( ) { final elemental2 . dom . Element element = mock ( elemental2 . dom . Element . class ) ; final elemental2 . dom . DOMTokenList classList = mock ( elemental2 . dom . DOMTokenList . class ) ; element . classList = classList ; when ( classList . contains ( org . kie . workbench . c... | org . junit . Assert . assertFalse ( org . kie . workbench . common . dmn . client . editors . types . common . HiddenHelper . isHidden ( element ) ) |
testInt64Compression ( ) { org . apache . directmemory . memory . allocator . FixedSizeUnsafeAllocator allocator = new org . apache . directmemory . memory . allocator . FixedSizeUnsafeAllocator ( 1 , 9 ) ; try { for ( int i = 0 ; i < 8 ; i ++ ) { long [ ] values = new long [ org . apache . directmemory . memory . buff... | org . junit . Assert . assertEquals ( value , result ) |
testSessionAttributeParser1 ( ) { final org . opendaylight . protocol . rsvp . parser . impl . te . SessionAttributeLspRaObjectParser parser = new org . opendaylight . protocol . rsvp . parser . impl . te . SessionAttributeLspRaObjectParser ( ) ; final org . opendaylight . yang . gen . v1 . urn . opendaylight . params ... | org . junit . Assert . assertArrayEquals ( TEObjectUtil . TE_LSP_SESSION_C1 , org . opendaylight . protocol . util . ByteArray . getAllBytes ( output ) ) |
userAgent ( ) { java . lang . String userAgent = com . amazonaws . util . VersionInfoUtils . userAgent ( ) ; System . out . println ( userAgent ) ; System . out . println ( userAgent . length ( ) ) ; "<AssertPlaceHolder>" ; } userAgent ( ) { java . lang . String userAgent = com . amazonaws . util . VersionInfoUtils . u... | org . junit . Assert . assertNotNull ( userAgent ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . document . library . kernel . model . DLFileEntryMetadata newDLFileEntryMetadata = addDLFileEntryMetadata ( ) ; com . liferay . document . library . kernel . model . DLFileEntryMetadata existingDLFileEntryMetadata = _persistence . findByPrimaryKey ( newDLFileEntryMetad... | org . junit . Assert . assertEquals ( existingDLFileEntryMetadata , newDLFileEntryMetadata ) |
copyConstructor_hasSameValues ( ) { array . add ( 23 ) ; com . restfb . json . JsonArray copy = new com . restfb . json . JsonArray ( array ) ; "<AssertPlaceHolder>" ; } values ( ) { return java . util . Collections . unmodifiableList ( values ) ; } | org . junit . Assert . assertEquals ( array . values ( ) , copy . values ( ) ) |
noModsReturnsSameResponse ( ) { org . apache . shindig . gadgets . http . HttpResponseBuilder builder = new org . apache . shindig . gadgets . http . HttpResponseBuilder ( ) ; builder . setHttpStatusCode ( HttpResponse . SC_BAD_GATEWAY ) ; builder . setResponseString ( "foo" ) ; org . apache . shindig . gadgets . http ... | org . junit . Assert . assertSame ( response , builder . create ( ) ) |
testSingleDimArray ( ) { net . sourceforge . pmd . lang . java . ast . ASTCompilationUnit cu = net . sourceforge . pmd . lang . java . ParserTstUtil . parseJava14 ( net . sourceforge . pmd . lang . java . ast . ASTLocalVariableDeclarationTest . TEST1 ) ; net . sourceforge . pmd . lang . java . ast . ASTLocalVariableDec... | org . junit . Assert . assertEquals ( 1 , node . getArrayDepth ( ) ) |
assertGetIntForColumnIndex ( ) { for ( java . sql . ResultSet each : resultSets . values ( ) ) { "<AssertPlaceHolder>" ; } } getInt ( java . lang . String ) { return getInt ( 1 ) ; } | org . junit . Assert . assertThat ( each . getInt ( 1 ) , org . hamcrest . CoreMatchers . is ( 10 ) ) |
copyCopiesGroupIds ( ) { state . generate ( environment , player , org . communitybridge . synchronization . PlayerStateTest . USER_ID ) ; org . communitybridge . synchronization . PlayerState copy = state . copy ( ) ; "<AssertPlaceHolder>" ; } getWebappGroupIDs ( ) { return webappGroupIDs ; } | org . junit . Assert . assertEquals ( state . getWebappGroupIDs ( ) , copy . getWebappGroupIDs ( ) ) |
fulltextIndexAndNodeTypeRestriction ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder defn = newLucenePropertyIndexDefinition ( builder , "test" , of ( "foo" ) , "async" ) ; defn . setProperty ( FulltextIndexConstants . EVALUATE_PATH_RESTRICTION , true ) ; defn . setProperty ( IndexConstants . DECLARING... | org . junit . Assert . assertNotNull ( planner . getPlan ( ) ) |
testEvaluateOneIndex ( ) { final org . eclipse . rdf4j . sail . Sail nonPcjSail = org . apache . rya . sail . config . RyaSailFactory . getInstance ( conf ) ; final org . apache . rya . mongodb . MongoDBRdfConfiguration pcjConf = conf . clone ( ) ; pcjConf . setBoolean ( ConfigUtils . USE_PCJ , true ) ; final org . ecl... | org . junit . Assert . assertEquals ( crh1 . count , crh2 . count ) |
deleteOperationRecords ( ) { container . login ( user . getKey ( ) ) ; final java . util . List < java . lang . Long > recordKeys = new java . util . ArrayList ( ) ; recordKeys . add ( java . lang . Long . valueOf ( recordForUserSub1 . getKey ( ) ) ) ; recordKeys . add ( java . lang . Long . valueOf ( recordForUserSub2... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
test1 ( ) { org . apache . commons . math3 . random . RandomGenerator rnd = getRandom ( ) ; cc . redberry . rings . util . RandomDataGenerator rndd = getRandomData ( ) ; for ( long modulus : java . util . Arrays . asList ( 2 , 3 , 17 , Integer . MAX_VALUE ) ) { cc . redberry . rings . IntegersZp64 ring = cc . redberry ... | org . junit . Assert . assertTrue ( rhs . isZero ( ) ) |
shouldSetPassword ( ) { this . connectionInfo . setPassword ( org . teiid . designer . runtime . TeiidConnectionInfoTest . NEW_PSWD ) ; "<AssertPlaceHolder>" ; } getPassword ( ) { return this . password ; } | org . junit . Assert . assertThat ( this . connectionInfo . getPassword ( ) , org . hamcrest . core . Is . is ( org . teiid . designer . runtime . TeiidConnectionInfoTest . NEW_PSWD ) ) |
testBuildFolderPathNonRootServicePathNoEncoding ( ) { System . out . println ( ( ( ( getTestTraceHead ( "[NGSIHDFSSinkTest.buildFolderPath]" ) ) + "[NGSIHDFSSinkTest.buildFolderPath]" 4 ) + "path<sp>is<sp>the<sp>encoding<sp>of<sp><service>/<service-path>/<entity>" ) ) ; java . lang . String backendImpl = null ; java . ... | org . junit . Assert . assertEquals ( expectedFolderPath , buildFolderPath ) |
WhenTransitionExistsInSupersate_TriggerCanBeFired ( ) { com . github . oxo42 . stateless4j . StateRepresentation < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > rep = CreateRepresentation ( State . B ) ; rep . addTriggerBehaviour ( new com . github . oxo42 . stateless4j . t... | org . junit . Assert . assertTrue ( sub . canHandle ( Trigger . X ) ) |
getOneFiltersTrivialTypeTest ( ) { final java . lang . String quote = org . nohope . cassandra . mapservice . QuoteTestGenerator . newQuote ( ) ; final org . nohope . cassandra . mapservice . ValueTuple valueToPut = org . nohope . cassandra . mapservice . ValueTuple . of ( org . nohope . cassandra . mapservice . CMapIT... | org . junit . Assert . assertEquals ( returnValue , valueToPut ) |
getTagsByPattern_differentLocale ( ) { java . util . List < java . lang . String > tags = org . oscm . ws . TagServiceWSTest . tagService . getTagsByPattern ( "ja" , "_bb" , 5 ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , tags . size ( ) ) |
stopTransactionAcceptedVerifyReturnValue ( ) { when ( chargePointService . remoteStopTransaction ( any ( io . motown . ocpp . v15 . soap . chargepoint . RemoteStopTransactionRequest . class ) , anyString ( ) ) ) . thenReturn ( getRemoteStopTransactionResponse ( RemoteStartStopStatus . ACCEPTED ) ) ; boolean willTransac... | org . junit . Assert . assertTrue ( willTransactionStop ) |
testGetMostRecentLocation ( ) { com . amplitude . api . DeviceInfo deviceInfo = new com . amplitude . api . DeviceInfo ( context ) ; org . robolectric . shadows . ShadowLocationManager locationManager = org . robolectric . Shadows . shadowOf ( ( ( android . location . LocationManager ) ( context . getSystemService ( Co... | org . junit . Assert . assertEquals ( loc , deviceInfo . getMostRecentLocation ( ) ) |
testStringRendererWithSubtemplateInclude_cap ( ) { java . lang . String templates = "foo(x)<sp>::=<sp><<<sp><({ack});<sp>format=\"cap\"><sp>>>\n" + "t()<sp>::=<sp><<ack>>\n" ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroupFile ( ( ( tmpdi... | org . junit . Assert . assertEquals ( expecting , result ) |
testProjected ( ) { org . apache . apex . malhar . lib . projection . ProjectionTest . logger . debug ( "start<sp>round<sp>0" ) ; org . apache . apex . malhar . lib . projection . ProjectionTest . projection . beginWindow ( 0 ) ; org . apache . apex . malhar . lib . projection . ProjectionTest . data . setProjected ( 2... | org . junit . Assert . assertTrue ( ( e instanceof java . lang . IllegalAccessException ) ) |
test_isSelectionPatternAvailable ( ) { mmarquee . automation . pattern . Selection pattern = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Selection . class ) ; when ( pattern . isAvailable ( ) ) . thenReturn ( true ) ; mmarquee . automation . controls . AutomationWindow window = new mmarquee . aut... | org . junit . Assert . assertTrue ( value ) |
update_BoundaryConditions ( ) { com . namespace . domain . UserGAE user = null ; "<AssertPlaceHolder>" ; } update ( com . namespace . domain . Account ) { com . namespace . repository . AccountDAOImpl . logger . info ( "update()" ) ; if ( account == null ) return false ; com . googlecode . objectify . Objectify ofy = o... | org . junit . Assert . assertFalse ( this . dao . update ( user ) ) |
testSelfSimilarity ( ) { org . evosuite . testcase . TestCase test = new org . evosuite . testcase . DefaultTestCase ( ) ; org . evosuite . testcase . statements . PrimitiveStatement < ? > aInt = new org . evosuite . testcase . statements . numeric . IntPrimitiveStatement ( test , 42 ) ; test . addStatement ( aInt ) ; ... | org . junit . Assert . assertTrue ( ( score > 0 ) ) |
testGeneratePojoQname ( ) { try { javax . xml . namespace . QName qname = org . firesoa . common . schema . JAXBUtil . generatePojoQname ( org . firesoa . common . schema . pojo_2 . childobj . Address . class ) ; javax . xml . namespace . QName qname_2 = new javax . xml . namespace . QName ( "http://childob.pojo_2.sche... | org . junit . Assert . assertEquals ( qname_2 , qname ) |
testThen ( ) { java . util . List < org . apache . commons . functor . core . composite . TestNullarySequence . RunCounter > list = new java . util . ArrayList < org . apache . commons . functor . core . composite . TestNullarySequence . RunCounter > ( ) ; org . apache . commons . functor . core . composite . NullarySe... | org . junit . Assert . assertEquals ( ( ( list . size ( ) ) - j ) , ( ( org . apache . commons . functor . core . composite . TestNullarySequence . RunCounter ) ( list . get ( j ) ) ) . count ) |
test_withSecond_noChange ( ) { java . time . LocalDateTime t = TEST_2007_07_15_12_30_40_987654321 . withSecond ( 40 ) ; "<AssertPlaceHolder>" ; } withSecond ( int ) { return with ( dateTime . withSecond ( second ) , offset ) ; } | org . junit . Assert . assertSame ( t , TEST_2007_07_15_12_30_40_987654321 ) |
shouldNotEvaluateToEqualDifferentId ( ) { final org . apache . tinkerpop . gremlin . structure . util . detached . DetachedVertex originalMarko = org . apache . tinkerpop . gremlin . structure . util . detached . DetachedFactory . detach ( g . V ( convertToVertexId ( "marko" ) ) . next ( ) , true ) ; final org . apache... | org . junit . Assert . assertFalse ( org . apache . tinkerpop . gremlin . structure . util . detached . DetachedFactory . detach ( secondMarko , true ) . equals ( originalMarko ) ) |
testAddonDeploymentEnhancerCalled ( ) { "<AssertPlaceHolder>" ; } getCalls ( ) { return test . org . jboss . forge . furnace . spi . MockAddonDeploymentScenarioEnhancer . calls ; } | org . junit . Assert . assertEquals ( 1 , test . org . jboss . forge . furnace . spi . MockAddonDeploymentScenarioEnhancer . getCalls ( ) ) |
invalidIntegerValidValuesConstraintShouldCreateViolations ( ) { java . util . Set < javax . validation . ConstraintViolation < org . alien4cloud . tosca . model . definitions . PropertyDefinition > > violations = validator . validate ( createValidValuesDefinition ( ToscaTypes . INTEGER . toString ( ) , com . google . c... | org . junit . Assert . assertEquals ( 2 , violations . size ( ) ) |
shouldSetCustomLabelWithNonNullValue ( ) { java . lang . String CUSTOM_LABEL = "customLabel" ; this . teiidServer . setCustomLabel ( CUSTOM_LABEL ) ; "<AssertPlaceHolder>" ; } getCustomLabel ( ) { return this . customLabel ; } | org . junit . Assert . assertThat ( this . teiidServer . getCustomLabel ( ) , org . hamcrest . core . Is . is ( CUSTOM_LABEL ) ) |
issue61Test ( ) { net . openhft . chronicle . map . ChronicleMapBuilder < java . lang . String , net . openhft . chronicle . map . Externalizable > builder = net . openhft . chronicle . map . ChronicleMapBuilder . of ( java . lang . String . class , net . openhft . chronicle . map . Externalizable . class ) . averageKe... | org . junit . Assert . assertEquals ( "value" , saved . value ) |
testSetIndication ( ) { org . drugis . addis . entities . Indication newValue = d_domain . getIndications ( ) . get ( 0 ) ; com . jgoodies . binding . value . ValueModel vm = d_wizard . getIndicationModel ( ) ; org . drugis . common . JUnitUtil . testSetter ( vm , null , newValue ) ; "<AssertPlaceHolder>" ; } getIndica... | org . junit . Assert . assertEquals ( newValue , d_wizard . getIndicationModel ( ) . getValue ( ) ) |
testEvaluateTwoIndexCrossProduct2 ( ) { final java . lang . String indexSparqlString = "" + ( ( ( ( "SELECT<sp>?e<sp>?l<sp>?c<sp>" + "{" ) + "<sp>?e<sp>a<sp>?c<sp>.<sp>" ) + "<sp>?e<sp><http://www.w3.org/2000/01/rdf-schema#label><sp>?l<sp>" ) + "}" ) ; final java . lang . String indexSparqlString2 = "" + ( ( ( ( "<sp>?... | org . junit . Assert . assertEquals ( false , ipv . isValid ( tup ) ) |
testServiceTypeIsValid ( ) { java . util . Set < java . lang . String > services = com . google . common . collect . ImmutableSet . of ( "foo" , "bar" ) ; validator = new com . cloudera . csd . validation . constraints . components . ValidServiceDependencyValidatorImpl ( services ) ; "<AssertPlaceHolder>" ; } isValid (... | org . junit . Assert . assertTrue ( validator . isValid ( "foo" , context ) ) |
deveObterOqueUFFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFInfoConsultaCadastro infoConsultaCadastro = new com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFInfoConsultaCadastro ( ) ; infoConsultaCadastro . setUf ( "SC" ) ; "<AssertPlaceHolder>" ; } getUf ( ... | org . junit . Assert . assertEquals ( "SC" , infoConsultaCadastro . getUf ( ) ) |
nietValideSynchronisatiePersoon ( ) { final nl . bzk . brp . model . internbericht . ProtocolleringOpdracht protocolleringOpdracht = maakProtocolleringOpdracht ( SoortDienst . SYNCHRONISATIE_PERSOON , datumMaterieelSelectie , datumAanvangMaterielePeriode , datumEindeMaterielePeriode , datumTijdAanvangFormelePeriode , n... | org . junit . Assert . assertFalse ( protocolleringOpdracht . isValide ( ) ) |
getBeanInfoFromMockedInterface ( mockit . ExpectationsUsingMockedTest$BusinessInterface ) { java . lang . Class < ? extends mockit . ExpectationsUsingMockedTest . BusinessInterface > mockClass = mock . getClass ( ) ; mockit . BeanInfo info = mockit . Introspector . getBeanInfo ( mockClass ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( info ) |
createNewOrderWithCustomAddress ( ) { net . magja . model . address . BasicAddress customerAddress = new net . magja . model . address . BasicAddress ( ) ; customerAddress . setFirstName ( "Atang" ) ; customerAddress . setLastName ( "Sutisna" ) ; customerAddress . setStreet ( "41123" 2 ) ; customerAddress . setCity ( "... | org . junit . Assert . assertNotNull ( order ) |
testExpandSqueezeChain ( ) { lombok . val origShape = new long [ ] { 3 , 4 } ; for ( int i = 0 ; i < 3 ; i ++ ) { for ( org . nd4j . linalg . primitives . Pair < org . nd4j . linalg . api . ndarray . INDArray , java . lang . String > p : org . nd4j . linalg . checkutil . NDArrayCreationUtil . getAllTestMatricesWithShap... | org . junit . Assert . assertEquals ( msg , out , inArr ) |
deveObterNumeroAtoConcessorioDrawbackComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemDetalheExportacao detalheExportacao = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemDetalheExportacao ( ) ; final java . math . BigInteger numeroAtoC... | org . junit . Assert . assertEquals ( numeroAtoConcessorioDrawback , detalheExportacao . getAtoConcessorioDrawback ( ) ) |
testAnnotationNameClashWithRegularClass ( ) { final java . lang . String drl = ( ( ( ( ( ( ( ( "package<sp>org.drools.test\n" + "import<sp>" ) + ( org . drools . compiler . integrationtests . AnnotationsTest . Duration . class . getCanonicalName ( ) ) ) + ";<sp>" ) + "<sp>durat<sp>:<sp>long<sp>" 1 ) + "<sp>@role(<sp>ev... | org . junit . Assert . assertNotNull ( ft ) |
testValidateAndTrimSecurityRoleFunctionKey ( ) { org . finra . herd . model . api . xml . SecurityRoleFunctionKey securityRoleFunctionKey = new org . finra . herd . model . api . xml . SecurityRoleFunctionKey ( SECURITY_ROLE , SECURITY_FUNCTION ) ; when ( alternateKeyHelper . validateStringParameter ( "security<sp>role... | org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . SecurityRoleFunctionKey ( SECURITY_ROLE_2 , SECURITY_FUNCTION_2 ) , securityRoleFunctionKey ) |
emptyValue ( ) { java . lang . String rac = "jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=)" + "(CONNECT_DATA=(SERVICE_NAME=)))" ; com . navercorp . pinpoint . plugin . jdbc . oracle . parser . OracleNetConnectionDescriptorParser parser = new com . navercorp . pinpoint . plugin . jdbc . oracle . parser . OracleNetConne... | org . junit . Assert . assertEquals ( des . getServiceName ( ) , null ) |
testBuildTransition2 ( ) { org . statefulj . fsm . model . State < org . statefulj . fsm . FSMBuilderTest . FooState > barState = new org . statefulj . fsm . model . impl . StateImpl < org . statefulj . fsm . FSMBuilderTest . FooState > ( "BAR" ) ; org . statefulj . fsm . FSMBuilderTest . FooState fooState = new org . ... | org . junit . Assert . assertEquals ( barState , this . fooStateFSM . getCurrentState ( fooState ) ) |
loadAtEndShouldBe15 ( ) { stateManager . informInsertionStarts ( java . util . Arrays . asList ( serviceRoute ) , java . util . Collections . < jsprit . core . algorithm . state . Job > emptyList ( ) ) ; jsprit . core . algorithm . state . Capacity routeState = stateManager . getRouteState ( serviceRoute , InternalStat... | org . junit . Assert . assertEquals ( 15 , routeState . get ( 0 ) ) |
testCountFilesAndCollectionsUnderPath ( ) { java . lang . String subdirPrefix = "testCountFilesAndCollectionsUnderPath" ; java . lang . String fileName = "testListCollectionsUnderPath.txt" ; int count = 30 ; org . irods . jargon . core . connection . IRODSAccount irodsAccount = org . irods . jargon . core . pub . Colle... | org . junit . Assert . assertTrue ( ( ctr >= count ) ) |
testStop ( ) { appender . start ( ) ; appender . stop ( ) ; "<AssertPlaceHolder>" ; appender . doAppend ( "Test<sp>message" ) ; verify ( chat , never ( ) ) . sendMessage ( any ( org . jivesoftware . smack . packet . Message . class ) ) ; } stop ( ) { boolean doStop = ch . qos . logback . classic . net . XmppAppender . ... | org . junit . Assert . assertFalse ( appender . isStarted ( ) ) |
testMethodWithInnerClassDollarSign ( ) { java . lang . String awtWindowClass = "java.awt.Window" ; org . adoptopenjdk . jitwatch . model . JITDataModel model = new org . adoptopenjdk . jitwatch . model . JITDataModel ( ) ; org . adoptopenjdk . jitwatch . model . MetaClass metaClass = null ; try { metaClass = model . bu... | org . junit . Assert . assertNotNull ( foundVarArgsMethod ) |
testConvertWithNoRelations ( ) { java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; java . lang . Long id = 1L ; org . lnu . is . domain . specoffer . SpecOfferType expected = new org . lnu . is . domain . specoffer . SpecOfferType ( ) ; expected . setName ( name ) ; expected . setAbb... | org . junit . Assert . assertEquals ( expected , actual ) |
nullMDC ( ) { org . slf4j . MDC . clear ( ) ; jee . setExpression ( "mdc.isEmpty()" ) ; jee . start ( ) ; ch . qos . logback . classic . spi . LoggingEvent event = makeLoggingEvent ( null ) ; "<AssertPlaceHolder>" ; } evaluate ( ch . qos . logback . access . spi . IAccessEvent ) { java . lang . String url = event . get... | org . junit . Assert . assertTrue ( jee . evaluate ( event ) ) |
testOFPFlowActionSetFieldOFPFlowMatch ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowMatch match = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowMatch ( ) ; org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowAction... | org . junit . Assert . assertThat ( target . getMatch ( ) , org . hamcrest . CoreMatchers . is ( match ) ) |
testIsAlmostNowComparedToOneSecondsBeforeNow ( ) { java . util . Date nowMinusOneSecond = org . apache . commons . lang3 . time . DateUtils . addSeconds ( new java . util . Date ( ) , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } isAlmostNow ( java . util . Date ) { boolean inRange = org . digidoc4j . utils . DateUtils . isInR... | org . junit . Assert . assertTrue ( org . digidoc4j . utils . DateUtils . isAlmostNow ( nowMinusOneSecond ) ) |
shouldCheckSubclasses ( ) { com . orientechnologies . orient . core . command . OBasicCommandContext context = new com . orientechnologies . orient . core . command . OBasicCommandContext ( ) ; context . setDatabase ( database ) ; com . orientechnologies . orient . core . metadata . schema . OClass parentClass = create... | org . junit . Assert . assertEquals ( 0 , result . stream ( ) . count ( ) ) |
testOr3Expression ( ) { com . hundredwordsgof . interpreter . Context context = new com . hundredwordsgof . interpreter . Context ( ) ; com . hundredwordsgof . interpreter . TerminalExpression firstTerminalExpression = new com . hundredwordsgof . interpreter . TerminalExpression ( true ) ; com . hundredwordsgof . inter... | org . junit . Assert . assertEquals ( true , context . isResult ( ) ) |
testCreateCGIContentLengthWithNonNumberHeader ( ) { when ( request . getHeader ( "Content-Length" ) ) . thenReturn ( "abc" ) ; "<AssertPlaceHolder>" ; } createCGIContentLength ( javax . servlet . http . HttpServletRequest , boolean ) { java . lang . String cgiContentLength = ( disallowEmptyResults ) ? "-1" : "" ; java ... | org . junit . Assert . assertEquals ( "" , sonia . scm . web . cgi . DefaultCGIExecutor . createCGIContentLength ( request , false ) ) |
testXmlConfig ( ) { cm = new org . infinispan . manager . DefaultCacheManager ( "jdbc-config.xml" ) ; org . infinispan . Cache < java . lang . String , java . lang . String > cache = cm . getCache ( "anotherCache" ) ; cache . put ( "a" , "a" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { boolean statistic... | org . junit . Assert . assertEquals ( "a" , cache . get ( "a" ) ) |
testRemoveMasterAndMediatorRegistrationControlEntry ( ) { java . util . Map < io . joynr . accesscontrol . global . jee . persistence . ControlEntryType , java . util . function . Supplier < java . lang . Boolean > > globalDomainAccessControllerSubjectCalls = new java . util . HashMap ( ) ; globalDomainAccessController... | org . junit . Assert . assertTrue ( globalDomainAccessControllerSubjectCalls . get ( type ) . get ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.